BP says it has reached a $7.8bn (£4.9bn) deal with the largest group of plaintiffs suing the company over the 2010 Deepwater Horizon oil rig spill.
It will benefit some 100,000 fishermen, local residents and clean-up workers whose livelihoods or health suffered.
The company has not admitted liability and still faces claims from the US and state governments, and drilling firms.
The rig exploded in the Gulf of Mexico in April 2010, killing 11 workers and leaking four million barrels of oil.
BP says it expects the money to come from a $20bn (£12.6bn) compensation fund it had previously set aside.
"From the beginning, BP stepped up to meet our obligations to the communities in the Gulf Coast region, and we've worked hard to deliver on that commitment for nearly two years," BP Chief Executive Bob Dudley said.
"The proposed settlement represents significant progress toward resolving issues from the Deepwater Horizon accident and contributing further to economic and environmental restoration efforts along the Gulf Coast."
Lawyers for the plaintiffs' group, the Plaintiffs' Steering Committee, said the settlement "does the greatest amount of good for the greatest number of people".
A trial in the case, due to begin on Monday, will now be delayed - for a second time - as a result of the deal,Judge Carl Barbier said.
The settlement will "likely result in a realignment of the parties," he said.
The trial is now being adjourned "in order to allow the parties to reassess their respective positions," Judge Barbier said.
The trial was due to resolve claims for damages and civil penalties arising from the spill.
Judge Barbier is an expert in maritime law and has consolidated hundreds of spill-related lawsuits into a single case.
The trial will probably still go ahead in order to apportion blame for the spill among BP and its fellow defendants.
Other companies involved include Transocean, who owned the rig, and Halliburton. All the companies are in dispute with each other over their liability to each other.
BP has so far paid out $7.5bn in clean-up costs and compensation.
US President Barack Obama called the spill "the worst environmental disaster the nation has ever faced".
It took 85 days to permanently stop the release of crude oil.