PORTLAND — A former Lewiston man has been sentenced to more than 27 years in prison after pleading guilty to drug conspiracy and arson charges.

Federal prosecutors said Thursday that 29-year-old Trezjuan Thompson was part of a cocaine and crack cocaine ring in the Lewiston-Auburn area when he set fire to an apartment that he had previously shared with a co-conspirator in November 2009. He pleaded guilty to the charges last year.

Prosecutors said that while he was incarcerated after the fire he conspired to distribute crack cocaine, and for that purpose used phones at the Androscoggin County Jail and the Maine State Prison.

The office of the U.S. Attorney said that because of Thompson’s previous convictions for drug trafficking and assault and battery with a dangerous weapon, he was sentenced as a career offender.