A Bangor man who sold heroin to dealers was sentenced to more than 18 years in federal prison Friday after pleading guilty to drug charges last fall.

Mario “Moe” Lee, 42, was sentenced in U.S. District Court in Portland for conspiring to possess with the intent to distribute 100 grams or more of heroin.

Chief Judge Nancy Torresen also sentenced him to eight years of supervised release after he completes his prison term.

According to court records, between August 2013 and September 2015, Lee supplied heroin to dealers in the Bangor area, paying them with heroin. Those dealers would introduce customers to Lee, drive him to heroin transactions and let him use their homes to sell heroin, the U.S. Attorney’s Office said.

Lee, formerly of the Bronx, New York, faced an enhanced sentence because of a previous drug trafficking conviction in New York.