Abstract The Qajar elites of Iran used various Shi'i religious rituals to bolster their legitimacy, but ta'zīyah was the Qajar ritual par excellence. This article argues for the key role played by the following factors. First, the relationship between the Qajar elites
and the elite ulamā was often contentious. Second, since the ulamā controlled most religious spaces and rituals, it was difficult for the Qajar elites to sponsor rituals independently of the ulamā, and third, since the ulamā had conflicting and ambivalent attitudes
towards certain Shi'i rituals, because of the practices of dressing up and representing holy Shi'i persons (including males dressing up as female characters), and because of the injurious aspects of rituals like qamah zanī and zanjīr zanī. Finally, hierarchies of status within
the ulamā developed throughout the Qajar period, following the victory of the Ūsūlīs over the Akhbārīs in Iraq and Iran. A combination of these factors meant that the highest-ranking ulamā typically did not sponsor rituals like ta'zīyah, which
provided a unique opportunity for Qajar elites to promote their legitimacy, with relative independence from the elite ulamā.