A Gorham man was sentenced Thursday to 10 years in prison on a charge of distributing fentanyl and heroin.

David Thurlow, 28, was sentenced in U.S. District Court in Portland to 10 years in prison, followed by three years of supervised release. Thurlow distributed heroin and fentanyl, an opiate more powerful than heroin, from at least December 2015 until February of this year, throughout Greater Portland.

The case was investigated by the U.S. Drug Enforcement Agency, the Maine Drug Enforcement Agency and the Gorham Police Department.