BP has agreed a $20 billion (£13.2bn) settlement in the US relating to claims over the huge oil spill at the Deepwater Horizon rig in 2010.

The oil giant said the settlement gives it "certainty" over what is has to pay.

An explosion at the rig in the Gulf of Mexico caused millions of barrels of oil to be spilled into the ocean, with BP taking 87 days to stop it. 11 workers were killed in the explosion.

The settlement is the single largest ever agreed by the US government with a single company. The money will be used by states with affected shoreline - including Texas, Louisiana, Mississippi, Alabama and Florida - to help repair some of the environmental and economic damaged caused.

"This historic resolution is a strong and fitting response to the worst environmental disaster in American history," said US Attorney General Loretta Lynch.