The Taliban have always had a complicated relationship with the opium trade. As a narcotic, opium is haram, or forbidden under Islamic law. But at the same time opium production has tended to increase in areas they have controlled, where local leaders reportedly raise money to fund their operations by imposing “taxes” on poppy farmers and others involved in the trade.
When it retook power in Afghanistan in August 2021, the Taliban leadership said it would prohibit the production of opium and duly announced the ban in April 2022.