The first political use of the death of Husayn seems to have been during the revolt of Mukhtar, when he seized Kufa under the slogan of "Revenge for Husayn".[67][130] Although the Penitents had used the same slogan, they do not seem have had a political program.[67] In order to enhance their legitimacy, Abbasid rulers claimed to have avenged the death of Husayn by dethroning the Umayyads.[131] During the early years of their rule, they also encouraged Muharram rituals.[132] Buyids, a Shi'a dynasty originally from Iran which later occupied the Abbasid capital Baghdad while accepting the Abbasid caliph's suzerainty,[133] promoted the public rituals of Muharram to portray themselves as patrons of religion and to strengthen the Shi'a identity in Iraq.[116] After taking over Iran in 1501, Safavids, who were previously a Sufi order, declared the state religion to be Twelver Shi'ism.