The Fatimid Caliphate was an Ismaili Shi'a caliphate extant from the tenth to the twelfth centuries AD. Spanning a large area of North Africa, it ranged from the Atlantic Ocean in the west to the Red Sea in the east. The Fatimids, a dynasty of Arab origin, trace their ancestry to Muhammad's daughter Fatima and her husband ‘Ali b. Abi Talib, the first Shi‘a imam. The Fatimids were acknowledged as the rightful Imams by different Isma‘ili communities, as well as by denominations in many other Muslim lands and adjacent regions. Originating during the Abbasid Caliphate, the Fatimids conquered Ifriqiya and established the city of al-Mahdiyya. The Ismaili dynasty ruled territories across the Mediterranean coast of Africa and ultimately made Egypt the center of the caliphate. At its height, the caliphate included – in addition to Egypt – varying areas of the Maghreb, Sudan, Sicily, the Levant, and the Hijaz.
Between 902 and 909 the foundation of the Fatimid state was realized under the leadership of da'i (missionary) Abu Abdallah, whose conquest of Aghlabid Ifriqiya paved the way for the establishment of the Caliphate. After the conquest, Abdallah al-Mahdi Billah was retrieved from Sijilmasa and then accepted as the Imam of the movement, becoming the first Caliph and founder of the dynasty in 909. In 921, the city of al-Mahdiyya was established as the capital. In 948, they shifted their capital to al-Mansuriyya, near Kairouan. In 969, during the reign of al-Mu'izz, they conquered Egypt, and in 973 the caliphate was moved to the newly founded Fatimid capital of Cairo. Egypt became the political, cultural, and religious centre of the empire, which developed a new and "indigenous Arabic" culture. After its initial conquests, the caliphate often allowed a degree of religious tolerance towards non-Shia sects of Islam, as well as to Jews and Christians. However, its leaders made little headway in persuading the Egyptian population to adopt its religious beliefs.