It has traditionally been taught that Iran, a Sunni polity for many centuries, was converted to Twelver Shi'ism virtually overnight when the armies backing the Safavid house took power in 907/1501. In recent years scholars have begun to question the manner and rapidity of the process of conversion, what it meant to be “Shi'i” or “Sunni” in sixteenth-century Iran, and what, if anything, can be said about Safavid Sunnism.
It has been noted that Sunnism in Iran was phased out only gradually. For example, there are references in the Persian chronicles to persecution of Sunnis as late as 1017/1608. Some sources suggest that Sunni influence persisted at the court of Shah Tahmasp and name prominent Sunnis during his reign. As late as the second decade of the eighteenth century, the conqueror of Isfahan, Mahmud Afghan, attempted to alter the balance of population in the city by relocating 5,000 Sunni families from Hamadan.