Sunni and Shia are the two great branches of Islam, their division rooted in a seventh-century political succession dispute rather than in doctrine at the outset. The Prophet Muhammad died in 632 without a son, and most chose Abu Bakr as caliph (later the Sunni line of "Rightly Guided Caliphs"); the party of Ali, the Prophet's cousin and son-in-law, held that only the Prophet's family by blood could succeed — they were the Shia ("partisans of Ali"). Ali became the fourth caliph in 656 and was assassinated in 661; in 680 his son Husayn was surrounded and killed at Karbala in today's Iraq by Umayyad troops, and the Shia narrative of the martyrdom of the imams and the Ashura mourning rites took shape — Karbala became the core memory of Shia identity. In doctrine: the Shia revere twelve imams (the Twelvers, the majority) or seven (the Ismailis), believing in the occultation and return of the last imam; the Sunnis have no line of imams and ground their four schools of law in scripture, consensus and analogy, revering the community of ulama. The five pillars are broadly the same, while details of prayer, the hadith collections and festivals differ. Some ninety percent of Muslims are Sunni, the Shia concentrated in Iran, Iraq, Azerbaijan, Bahrain and Lebanon; the Safavids' establishment of Shi'ism as Iran's state religion in 1501 fixed the geopolitical pattern, and Sunni–Shia relations remain a deep fault line in Middle Eastern politics.