The Tahirid dynasty (Tâheriyân, t̪hɒːheɾiˈjɒːn) was a culturally Arabized Sunni Muslim dynasty of Persian dehqan origin, that ruled as governors of Khorasan from 821 to 873 as well as serving as military and security commanders in Abbasid Baghdad until 891. The dynasty was founded by Tahir ibn Husayn, a leading general in the service of the Abbasid caliph al-Ma'mun. For his support of al-Ma'mun in the Fourth Fitna, he was granted the governance of Khorasan. The Tahirids initially made their capital in Merv but later moved to Nishapur. The Tahirids, however, were not an independent dynasty—according to Hugh Kennedy: "The Tahirids are sometimes considered as the first independent Iranian dynasty, but such a view is misleading. The arrangement was effectively a partnership between the Abbasids and the Tahirids." Indeed, the Tahirids were loyal to the Abbasid caliphs and in return enjoyed considerable autonomy; they were in effect viceroys representing Abbasid rule in Persia. The tax revenue from Khorasan sent to the caliphal treasury in Baghdad was perhaps larger than those collected previously. The founder of the Tahirid dynasty was Tahir ibn Husayn, a Sunni Persian of dehqan origin, who had played a major military role in the civil war between the rival caliphs al-Amin and al-Ma'mun. He and his ancestors had previously been awarded minor governorships in eastern Khorasan for their service to the Abbasids. In 821, Tahir was made governor of Khorasan, but he died soon afterwards. The caliph then appointed Tahir's son, Talha, governor of Khorasan. Talha was unsuccessful in removing the Kharijites from Sistan, and following the death of the Kharijite leader, Hamza b. Adarak (d.828), the Tahirids occupied Zarang but never succeeded in collecting taxes in the surrounding countryside. Tahir's other son, Abdullah, was instated as the wali of Egypt and the Arabian Peninsula, and when Talha died in 828 he was given the governorship of Khorasan.