A West Bath man pleaded guilty on Tuesday in federal court to providing heroin mixed with fentanyl that killed a West Bath woman in 2016.

Mickey Gilley, 34, was charged with the Class C felony of knowingly and intentionally distributing a mixture of heroin and fentanyl resulting in death following the Sept. 20, 2016, incident. He allegedly obtained heroin mixed with the painkiller fentanyl from a Portland supplier, and later that day distributed it to a West Bath woman, who consumed it and died as a result.

Assistant U.S. Attorney David B. Joyce said in May that Gilley gave the woman the drugs at a West Bath home.

He faces a maximum sentence of 20 years in prison, a $1 million fine and life on supervised release, according to a release from Acting U.S. Attorney Richard W. Murphy.

The case was investigated by the Maine Drug Enforcement Agency, the Sagadahoc and Lincoln county sheriff’s offices, the Maine State Police and the Maine Attorney General’s Office.