This article undertakes a comparison between Safavid Iran and modern Pakistan with the aim of highlighting the similarities and differences between their respective state projects of crafting ‘Islamic’ polities. The comparison proceeds through a focus on the state-sanctioned practice of ritual cursing of Sunnis and Ahmadis in Safavid Iran and Pakistan respectively. In both cases, the states made extensive legal efforts to mark out these religious Others by vilifying them on charges of heresy and innovation. This article argues that this vilification was oriented towards creating homogeneity among political subjects of the polity, who were required by the state to curse and condemn these religious Others in order to demonstrate their submission to sovereign power. Ritual cursing thus functioned as an oath of submission that was elicited by the state to draw subjects into the project of sacralizing the polity and to discipline them into reproducing the normative order of the sovereign power. There are also significant differences between the two cases that throw light on the historical specificity of different modes of sovereignty in early modern and modern Muslim polities. While Safavid kings sacralized their realm through the diffusion of scriptural law moulded to enhance their own sovereign power, the Pakistani state is engaged in the sacralization of the national body politic through its official religious nationalist ideology.