Credit: Pixabay/CC0 Public Domain

The Texas company operating the pipeline that caused a massive oil spill in the waters off Huntington Beach agreed to plead no contest to state environmental charges and pay nearly $5 million in fines and penalties, prosecutors announced Thursday.

Orange County and state prosecutors this week charged Houston-based Amplify Energy Corp. and two subsidiaries—Beta Operating Co. and San Pedro Bay Pipeline Co.—with misdemeanor counts of pollution and failing to immediately report last fall's discharge of oil into state waters to the Office of Emergency Services.

The companies were also charged with four misdemeanor counts for taking two brown pelicans, which are protected birds, and taking two migratory nongame birds, a western grebe and a Brandt's cormorant, according to a criminal complaint filed in Orange County Superior Court.

The still needs to be approved by a judge. Authorities expect Judge Larry Yellin to consider it at a hearing.

California Attorney General Rob Bonta said during a news conference Thursday in Santa Ana that the plea deal reached with the company is believed to be the largest state misdemeanor criminal fine in Orange County history.

"While the exact cost of the spill is still unknown, today's announcement marks an important step toward accountability," Bonta said.

As a result of the agreement with prosecutors, Amplify Energy will be required to install a new leak detection system in the pipeline and implement new employee training to notify regulators of every leak detection alarm to prevent future spills. The company will be placed on a yearlong probation, Bonta said.

Amplify President and Chief Executive Martyn Willsher said in a prepared statement that the agreement "further reflects the commitments we made immediately following the incident."

Amplify has worked "diligently" to help address the aftermath of the spill, including sending more than 1,800 contractors to assist with cleanup and and paying "covered claims as expeditiously as possible," Willsher said.

The news comes nearly two weeks after Amplify Energy and its subsidiaries agreed to plead guilty to federal environmental charges and pay nearly $13 million in connection with the oil spill, which sent at least 25,000 gallons of crude gushing into the ocean in a 14-hour period early last October.

Despite hours of signals that their 17.3-mile oil pipeline may have been leaking, the companies continued to negligently pump into the waters off Huntington Beach, according to prosecutors.

The underwater pipeline, which runs between a production and processing platform and the Port of Long Beach, was being operated by "an understaffed and fatigued crew" that "had not been provided sufficient training regarding the pipeline's automated leak detection system," according to a federal indictment filed in December.

The oil spill required more than a week of cleanup, disrupted activity along the coast and forced the cancelation of the Pacific Airshow in Huntington Beach, one of the city's most popular annual events.

"It's great that the prosecution of violations of the Clean Water Act is resulting in better enforcement and environmental protections for our beautiful coast," Orange County Supervisor Katrina Foley said. "But we can't just let it go. We have to make sure those pipelines are remediated and removed."

Last month, Amplify also tentatively agreed to settle more than a dozen lawsuits brought by and residents who say they were financially affected by the spill. The terms of the settlement have not been disclosed.

Willsher has said that the company is still pursuing a lawsuit against the businesses that own and operate two that have been accused of dragging their anchors across the sea floor and damaging the months before the .