The Fatimids in North Africa: The Caliphate’s Rise in Ifriqiya

The Fatimid caliphate lasted from 909 to 1171, but its political center changed during that time. It began in Ifriqiya, a region centered on present-day Tunisia and extending into adjoining parts of the Maghreb. After the conquest of Egypt in 969, the court moved east and Egypt became the caliphate’s center. North African territories remained important, but they were increasingly governed through local rulers rather than from a court in Ifriqiya.

The Fatimids were an Isma’ili Shia dynasty. They claimed descent from Fatima, the daughter of Muhammad, and held that their ruler was both caliph, the political leader of the Muslim community, and imam, its divinely guided religious leader. Their state therefore joined political rule to Isma’ili religious authority. Most people in Ifriqiya followed other traditions, including Maliki Sunni Islam, a school of Islamic law, and Ibadism. The dynasty’s early military strength rested above all on its alliance with the Kutama Berbers.

On this page7 sections

From an Isma’ili mission to the overthrow of the Aghlabids

The Fatimid rise began with the work of Abu Abdallah al-Shi’i, an Isma’ili da’i, or missionary. He built support among the Kutama communities of the region around present-day northeastern Algeria. The Kutama alliance was more than a religious following: it supplied the movement with fighters and a political base organized around local tribal structures. Abu Abdallah gained support through preaching and negotiation, as well as through force against groups that resisted him.

At the time, Ifriqiya was ruled by the Aghlabids, a dynasty that had once governed in the name of the Abbasid caliphs but was by then effectively independent. Abu Abdallah’s forces took cities and strongholds over several campaigns. Aghlabid troubles over succession and defeats in the field weakened their ability to resist. In March 909, Kutama forces entered Raqqada, the Aghlabid palace city near Kairouan, and the last Aghlabid ruler fled.

Abu Abdallah had taken power on behalf of his absent leader, Abdallah al-Mahdi. After bringing him from Sijilmasa, in what is now Morocco, Abu Abdallah installed him at Raqqada. Al-Mahdi publicly assumed the caliphate in 910. The new regime retained much of the Aghlabid administrative apparatus, allowing officials from the previous government to continue serving it. Its immediate military foundation, however, remained the Kutama. Two subsequent attempts to invade Egypt, in 914–915 and 919–921, failed, delaying the dynasty’s eastward ambitions and reinforcing its need to establish itself in Ifriqiya.

Mahdia and the problem of securing rule

Raqqada was not the Fatimids’ only capital. In 921, the court shifted to al-Mahdiyya, a new fortified city on a peninsula on the Mediterranean coast of present-day Tunisia. Its position and defenses made it a secure base, while the coast connected the dynasty to its naval forces and to the wider western Mediterranean. The location also distanced the court from Kairouan, a major urban center whose population largely followed Sunni Islam.

Mahdia housed the caliph’s palace and the court’s administrative and military facilities. Its Great Mosque, begun in 916, provided the new capital with a place for congregational prayer and the Imam’s public appearances. The protected coastal seat placed these institutions behind the city’s defences while maintaining access to its fleet.

One of the gravest challenges was the revolt led by Abu Yazid, an Ibadi preacher opposed to Fatimid religious and political authority. It began among Zenata Berbers in 943 or 944 and spread through Ifriqiya. The rebels captured Kairouan and besieged Mahdia from January to September 945. Al-Qa’im died in 946, while the revolt was still continuing. His death was concealed as his son Isma’il took charge of the struggle. Isma’il defeated Abu Yazid in 947 and ruled as al-Mansur, a name meaning “the victorious.”

Al-Mansur established another palace city, al-Mansuriyya, on the outskirts of Kairouan. Construction began around 946, and the city became the seat of government in 948. Its name commemorated the victory over Abu Yazid. The move created a new court center inland, close to Kairouan, after the crisis had been overcome. Al-Mansur’s successor, al-Mu’izz, completed the city’s mosque and other building work.

Contested authority in the Maghreb and Sicily

Rivalry with the Umayyads of Córdoba

Fatimid authority was less secure farther west, where the dynasty competed with the Umayyads of Córdoba for influence in the western Maghreb. Fatimid campaigns reached what is now northern Morocco in 917 and 921. They targeted local powers, including the principality of Nakur, and Fatimid forces captured Fez and Sijilmasa in 921. These gains did not create consistent direct government. Local rulers and weakened Idrisid authorities often acted as intermediaries, and their allegiance could shift between the Fatimids and the Umayyads as political circumstances changed.

The limits of Fatimid control were clear when Musa ibn Abi’l-Afiya, a local leader who had served the Fatimids, changed allegiance to the Umayyads in 932. In 958, the Fatimid general Jawhar al-Siqilli led a major western campaign with support from the Zirid leader Ziri ibn Manad. Fatimid forces took Sijilmasa and, in 960, Fez, but they did not dislodge Umayyad garrisons from Sala, Ceuta and Tangier. The Umayyads reasserted their position in northern Morocco in 973. Rivalry and shifting local alliances kept effective Fatimid rule in much of the western Maghreb uncertain.

Sicily and the Byzantine conflict

The Fatimids also inherited Sicily from the Aghlabids, who had conquered most of the island from the Byzantine Empire. The island’s government depended on local commanders and rulers, and Fatimid authority faced a revolt under Ibn Qurhub before it was consolidated. Conflict with Byzantium continued across the surrounding seas. Fatimid forces captured Taormina in 962 and Rometta in 965, but Sicily remained a distant and locally governed possession rather than a territory administered in the same way as the court’s North African core.

Fatimid authority on the island later weakened as its Muslim political order fragmented. The Kalbids, the family governing Sicily under Fatimid suzerainty, lost power in the mid-eleventh century. When the Normans began their conquest in 1061, the island was divided between local Muslim rulers. They completed the conquest in 1091.

Why Egypt became the next centre

In 969, Jawhar led the successful conquest of Egypt, then ruled by the Ikhshidids. Their strongest ruler, Kafur, had died in 968, and political division and economic hardship weakened resistance. Jawhar founded a new royal and administrative city, al-Qahira, or Cairo, northeast of Fustat, the older capital on the Nile.

Egypt offered the Fatimids agricultural revenues from the Nile valley and a commercial position between the Mediterranean and the Red Sea. Moving there also brought the dynasty closer to Syria and the Abbasid heartlands to the east. Earlier invasions had failed; the conquest of 969 supplied the territorial and financial base for a court in Egypt.

The transfer of the court and the Zirid relationship

Once Egypt had been secured and Cairo established, al-Mu’izz and his court left Ifriqiya in autumn 972. They arrived in Cairo on 10 June 973, transferring the caliphate’s political center from al-Mansuriyya to Egypt. Before departing, al-Mu’izz had installed Buluggin ibn Ziri as his viceroy in the Maghreb. This appointment established a Zirid dynasty that governed Ifriqiya in the caliph’s name, though it increasingly acted on its own behalf.

Buluggin’s son and successor al-Mansur moved the Zirid base from Ashir to al-Mansuriyya in 988. The Zirids continued to acknowledge the Fatimid caliphs formally, and Cairo sanctioned their succession, but they had become effectively independent rulers of Ifriqiya. In the 1040s they declared their independence and recognized the Sunni Abbasid caliphs. The Fatimids responded by encouraging the Banu Hilal and Banu Sulaym to migrate westward. Their migration brought major political and social changes to the Maghreb, including a further spread of Arabic in its countryside. The Fatimid caliphate continued from Egypt until Saladin abolished it in 1171, long after its court had left North Africa.

Scroll to Top