The opioid manufacturer Insys Therapeutics agreed to pay $225 million to settle federal criminal and civil charges that it illegally marketed a highly addictive fentanyl painkiller to doctors, federal prosecutors said on Wednesday.

As part of the deal, a subsidiary of Insys will plead guilty to five counts of mail fraud and the company will pay a $2 million fine and $28 million in forfeiture, according to a statement from the United States attorney’s office in Massachusetts. The company will also pay $195 million to settle allegations that it violated the federal False Claims Act, which involves defrauding the federal government through drug sales to health care programs like Medicare.

A month ago,