 Shafi'i Sunnism was the dominant form of Islam in most of Iran until rise of the Safavid Empire although a significant undercurrent of Ismailism and a very large minority of Twelvers were present all over Persia.The Sunni hegemony did not undercut the Shia presence in Iran.The writers of the Shia Four Books were Iranian, as were many other scholars.