Maine could receive more than $66 million in additional opioid settlement funds, thanks to recent agreements reached with CVS, Walgreens and Walmart.

A multistate coalition of attorneys general finalized agreements with the pharmacy chains, according to a Monday press release from Maine Attorney General Aaron Frey.

“Our communities have suffered tremendously,” Frey said in the release. “These pharmacies must be held to account for their role, along with opioid manufacturers and distributors, in the devastation opioids have caused in Maine and across the country.”

From January through October, there have been an estimated 565 fatal overdoses in Maine, according to the Maine Drug Data Hub. In 2021, 631 Mainers died of a fatal overdose, the vast majority of which were tied to fentanyl.

Frey said the settlement funds will be used in Maine for treatment, prevention and recovery efforts.

Exactly how much Maine will receive depends, in part, if municipalities sign on.

The money will be paid out over several years, with Walmart’s portion valued at $2.7 billion, Walgreens at $5.7 billion and CVS at $5 billion, according to Frey’s office.

The settlements require the pharmacies at the three companies to monitor, report and share data about suspicious activity related to opioid prescriptions.

Previously, the state announced that it will receive about $130 million as part of legal settlements with opioid manufacturers and distributors.