Iran has had a rocky relationship with the Taliban. The group killed Iranian diplomatic personnel and an Iranian journalist at Iran’s consulate in the northern Afghan city of Mazar-i-Sharif in 1998, during the years when it last controlled most of Afghanistan. These murders earned the Taliban a reputation for viciousness among the Iranian public, and the government came close to ordering a military response. Tehran actively supported the U.S. in ousting the Taliban and setting up a new government in Kabul in 2001. But Iran has also pragmatically worked with the Taliban when it had to, particularly from the 2010s onward, even forging links with parts of the group as a way to hedge its bets and maintain some influence with a powerful force in Afghanistan that was rapidly regaining strength.
Today, despite Iran’s relief at the U.S. withdrawal and its own improved ties with the Taliban, there are several aspects of the group’s takeover that put Tehran on edge.