The Fatimids claimed descent from Fatimah, the daughter of Islamic prophet Muhammad. The Fatimid state took shape among the Kutama Berbers, in the West of the North African littoral, in Algeria, in 909 conquering Raqqada, the Aghlabid capital. In 921 the Fatimids established the Tunisian city of Mahdia as their new capital. In 948 they shifted their capital to Al-Mansuriya, near Kairouan in Tunisia. In 969 they conquered Egypt and established Cairo as the capital of their caliphate; Egypt became the political, cultural, and religious centre of their empire that developed an indigenous Arabic culture.
The ruling class belonged to the Ismaili branch of Shi’ism, as did the leaders of the dynasty. The existence of the caliphate marked the only time the descendants of Ali and Fatimah were united to any degree (except for the final period of the Rashidun Caliphate under Ali himself from 656 to 661) and the name “Fatimid“ refers to Fatimah. The different term Fatimite is sometimes used to refer to the caliphate’s subjects.