Fatimid History: From North Africa to Egypt

The Fatimid caliphate began in North Africa in 909 and ended in Egypt in 1171. Its rise joined a religious mission to a powerful military alliance; its expansion created a state whose court eventually moved across the Mediterranean’s southern coast to Cairo. The transfer gave the dynasty access to Egypt’s agricultural revenues and trading networks, while changing its relationship with the western territories where it had first gained power.

The Fatimids followed Ismaili Shi’i Islam. They claimed descent from Fatima, the daughter of the Prophet Muhammad, and recognised their ruler as both Imam, the authority who interpreted religious teaching, and caliph, the political leader of the Muslim community. This claim challenged the Abbasid caliphs in Baghdad and, later, the Umayyad caliphs in Córdoba. Building a state therefore meant winning allegiance to a religious leader as well as controlling cities, revenues and soldiers.

On this page4 sections

The rise of the caliphate in North Africa

The movement’s early strength came from the Kutama Berbers of present-day northeastern Algeria. Abu Abdallah al-Shi’i, an Ismaili missionary, developed support among their communities and organised forces against the Aghlabids. This dynasty ruled Ifriqiya, the region centred on present-day Tunisia, and formally acknowledged the Abbasids despite exercising considerable independence. Preaching, local alliances and military campaigns supplied the means to replace it.

In March 909, Kutama forces entered the Aghlabid palace city of Raqqada, near Kairouan. The last Aghlabid ruler fled. Abu Abdallah then brought his leader, Abdallah al-Mahdi, from Sijilmasa in present-day Morocco to assume rule. Al-Mahdi publicly took the title of caliph in 910. Existing officials and administrative arrangements helped the new dynasty govern, while the Kutama remained its principal military support.

Holding power proved harder than overthrowing the Aghlabids. Much of the population followed Sunni or Ibadi traditions rather than Ismaili teaching. The court built Mahdia on a narrow peninsula, moving there in 921. Its defended approach, harbour and naval facilities made it a protected seat with access to the sea. The Great Mosque of Mahdia, begun in 916, joined congregational worship to the institutions of the new capital.

The revolt of the Ibadi preacher Abu Yazid nearly destroyed the state in the 940s. His forces took Kairouan and besieged Mahdia in 945. The Fatimids survived the siege, and al-Mansur defeated the rebels in 947. His new palace city, al-Mansuriyya near Kairouan, became the court’s inland seat after the crisis. Successive capitals thus reflected changes in the dynasty’s security and its ability to establish authority in Ifriqiya.

Power beyond this core depended heavily on other rulers. In the western Maghreb, local leaders could shift allegiance between the Fatimids and the Umayyads of Córdoba. Sicily, inherited from the Aghlabids, was governed through commanders and the Kalbid family under Fatimid suzerainty, meaning recognition of a superior ruler while retaining local government. These arrangements extended the caliphate’s reach, but required continuing negotiation and military support.

Egypt and the creation of a new centre

The Fatimids attempted to conquer Egypt twice before succeeding in 969. By then, the death of the powerful Ikhshidid ruler Kafur in 968 had left its government weakened by political division and economic difficulties. Jawhar, the Fatimid general, led the conquest and founded a new palace city beside Fustat, the established capital and commercial centre on the Nile.

Egypt offered revenues from the Nile valley and access to trade between the Mediterranean and the Red Sea. It also brought the Fatimids closer to Syria and the Abbasid territories farther east. The conquest provided the resources and position for a larger state, while the new city provided a home for its ruler and administration. In 973, al-Mu’izz transferred the court from Ifriqiya to Cairo.

Cairo and Fustat developed connected roles. Palaces, officials and ceremonial institutions concentrated in the new court city, while Fustat continued to support markets, merchants and river transport. Egyptian agriculture and commerce supplied the resources needed to maintain government and military forces. The rulers retained officials and administrative practices from earlier regimes as they established their own authority.

Religious patronage gave the new capital a further purpose. Al-Azhar, founded in 970–972, supported worship and Ismaili legal instruction, while specialised sessions in the palace taught initiates the inner meaning of religious texts. Most Egyptian Muslims remained Sunni, and Christian and Jewish communities continued to participate in urban life and government. Relations with these communities varied between rulers; al-Hakim’s restrictions and destruction of churches, including the Holy Sepulchre in Jerusalem in 1009, marked a particularly severe change.

The move also altered western government. Buluggin ibn Ziri became the caliph’s deputy in Ifriqiya, and his descendants developed an increasingly independent Zirid state. In the 1040s they recognised the Abbasids. Sicily’s Muslim political order also fragmented, and the Normans conquered the island between 1061 and 1091. The Egyptian court could continue long after its western dependencies had ceased to acknowledge it.

Regional ambitions and the rise of military ministers

From Egypt, the Fatimids contested Palestine and Syria with local rulers, Qarmatian armies, Byzantium and later the Seljuk Turks. Their position depended on garrisons, coastal ports, payments and agreements. Recognition in the Hijaz, the region containing Mecca and Medina, and links with Yemen’s Sulayhid rulers connected the dynasty with pilgrimage and Red Sea routes. These relationships involved different degrees of direct rule and local allegiance.

The army also changed. Kutama troops served alongside Turkish, Black African, Armenian and other forces at different times. Competition over pay, appointments and influence became destructive during al-Mustansir’s long reign. In the 1060s, poor Nile floods and famine coincided with fighting between military factions. Plunder depleted the treasury, while control of the Delta allowed hostile commanders to obstruct food supplies to Cairo.

Badr al-Jamali arrived in 1074 at the caliph’s invitation and restored order through military force. Appointed vizier, or chief minister, he combined government with army command. This concentration of authority changed the balance within the state: the caliph retained religious and formal political leadership, while a military minister could control the resources and troops on which government depended. Badr’s son al-Afdal succeeded him in 1094.

Military recovery did not restore the caliphate’s earlier regional reach. The First Crusade brought a new power into Palestine. The Fatimids recovered Jerusalem in 1098 but lost it to the Crusaders in 1099; later coastal losses reduced their remaining positions. Ascalon, the last Fatimid foothold in the Levant, surrendered in 1153.

The end of the Fatimid state

Disputed successions weakened the unity claimed by the Imam-caliph. After al-Mustansir died in 1094, supporters of his sons Nizar and al-Musta’li divided into separate Ismaili branches. A further dispute followed al-Amir’s assassination in 1130. Meanwhile, child caliphs and powerful ministers made control of the vizierate central to political rivalry.

In the 1160s, competing Egyptian ministers sought help from the Crusader kingdom of Jerusalem and Nur al-Din, the Zengid ruler of Syria. Outside armies intervened as each side tried to secure Egypt’s resources. The Syrian commander Shirkuh became vizier in 1169, and after his death his nephew Saladin succeeded him.

Saladin promoted Sunni religious institutions and ended official Ismaili teaching. In September 1171, the Abbasid caliph’s name replaced the Fatimid ruler al-Adid’s in the Friday sermon. Naming a caliph at this public service expressed recognition of his authority, so the change announced the end of the Fatimid caliphate. Al-Adid died shortly afterwards. Egypt remained the centre of Saladin’s power, becoming the base of the Ayyubid dynasty that followed.

Scroll to Top