The goal of the second constitutional amendment passed in 1974 was to excommunicate the Ahmadis and establish Pakistan as a bona fide Islamic state. The Pakistani state accomplished this goal through an extraordinary process in which the National Assembly conducted a month-long examination of Ahmadi beliefs. Conducted by the attorney general of Pakistan, who was aided by the ulema members of parliament, these proceedings were a type of heresy inquisition in which the leaders of the Ahmadi community served as defendants. This article examines the key religious issues involved in these proceedings from a longer historical perspective that includes the Mughal and Safavid eras. In doing so, it highlights how pre-modern forms of religious persecution and accommodation came to be adapted to serve the ends of a modern constitutional nation-state.