BP said Thursday that it will pay $4.5 billion in a settlement with the U.S. government over the massive 2010 oil spill and will plead guilty to felony counts related to the deaths of 11 workers and lying to Congress.

The figure includes nearly $1.3 billion in criminal fines — the largest such penalty ever — along with payments to several government entities.