fought against the Caliphate, but also for the preservation of Persian language and culture. After the death of Javidhan, Babak married Javidhan's wife and became the Khorramis' leader, sometime in the year 816–17 during al-Ma'mun's reign. Babak incited his followers to rebel against the caliphate. According to Vladimir Minorsky, around the 9th–10th century: At that time of Babak, there were Khorramis scattered in many regions of Iran, besides Adharbayjan, reportedly in Tabarestan, Khorasan, Balkh, Isfahan, Kashan, Qom, Ray, Karaj, Hamadan, Lorestan, Khuzestan as well as in Basra, and Armenia. Tabari records that Babak claimed he possessed Javadan's spirit and that Babak became active in 816–817. In 819–820 Yahya ibn Mu'adh fought against Babak, but could not defeat him. Two years later Babak vanquished the forces of Isa ibn Muhammad ibn Abi Khalid. In 824–825 the caliphal general Ahmad ibn al Junayd was sent against Babak. Babak defeated and captured him. In 827–828 Muhammad ibn Humayd Tusi was dispatched to fight Babak. He won a victory and sent some captured enemy, but not Babak, to al-Ma'mun. However, about two years later, on June 9, 829, Babak won a decisive victory over this general at Hashtadsar. Muhammad ibn Humayd lost his life. Many of his soldiers were killed. The survivors fled in disarray. Babak's victories over Arab generals were associated with his possession of Badd fort and inaccessible mountain stronghold according to the Arab historians who mentioned that his influence also extended even to the territories of today's Azerbaijan - ″southward to near Ardabil and Marand, eastward to the Caspian Sea and the Shamakhi district and Shervan, northward to the Muqan (Moḡan) steppe and the Aras river bank, westward to the districts of Jolfa, Nakjavan, and Marand”. In 835–836 the caliph al-Mu'tasim sent his outstanding general Afshin against Babak. Afshin rebuilt fortresses. He employed a relay system to protect supply caravans. Babak tried to capture the money being sent to pay Afshin's army, but was himself surprised, lost many men and barely escaped. He did succeed in capturing some supplies and inflicting some hardship on his enemies. Amongst Babak's commander, various names have been mentioned including Azin, Rostam, Tarkhan, Mua’wiyah and Abdullah. The next year Babak routed the forces of Afshin's subordinate, Bugha al-Kabir. In 837–838 al-Mu'tasim reinforced Afshin and provided him clear military instructions. Patiently following these enabled Afshin to capture Babak's stronghold of Badhdh. Babak escaped. Al-Mu'tasim sent a safety