Babak Khorramdin
In 835, Caliph al-Mu'tasim appointed Afshin as governor of Adharbayjan to fight against Babak Khorramdin, leader of anti-Islamic neo-Mazdakite Persian movement of the Khurramites.