Zoroastrianism and Mithraism gave way to Islam in the seventh century. Islam immediately split into two warring camps, and initally most Persians were Sunni. After the Ottoman Turks made themselves head of the Sunni, Shi'ism, encouraged by a Persian shah (king), rapidly became the majority view.