If Mecca and Medina represent the cradle of Islam, and if Damascus, Baghdad and Cairo later became major capitals of state and civilisation, then Kairouan represents a different moment in the history of Islam: the moment when Islamic civilisation moved from the East to the heart of the Maghreb.
Kairouan was not a city that grew around an ancient port or a former capital. It was founded in the first century AH to serve as a base for Muslims in Ifriqiya, a permanent military and administrative centre, a place where soldiers and their families could settle, and from which armies could move towards the western regions.
From this city began a new phase in the history of the Islamic Maghreb. Conquests were no longer mere passing military campaigns; they gradually turned into settlement, urban development, education, markets, judiciary and scholarly institutions.

Why was Kairouan built?
The conquest of Egypt had extended the borders of the Islamic state into North Africa, but the distance between Egypt and the Maghreb was great, and continuing military operations from eastern bases alone was extremely difficult.
For this reason, the Muslims needed a city that would serve as a stable base in Ifriqiya.
Uqba ibn Nafi chose the site of Kairouan at some distance from the coast, a point of military significance: the city was not a port exposed to direct naval attack, while at the same time it was close to routes of movement into the interior.
Here the difference between conquest and settlement becomes apparent: conquest opens the land, while the city creates the capacity to remain on it.
Kairouan was one of the most important tools that transformed the Islamic presence in the Maghreb from a military movement into a stable civilisational presence.

Uqba ibn Nafi: the founder who left his name on the city
The name of Kairouan has been linked since its foundation to Uqba ibn Nafi al-Fihri, one of the leading commanders of the conquest of North Africa. His role was not limited to leading armies; his choice to establish a permanent city in Ifriqiya was a long-term strategic decision.
From Kairouan, campaigns moved westward, and the expansion continued under those who followed him.
Yet the history of the Islamic Maghreb was not a straight path of conquest. The Muslims faced strong resistance from local forces, repeated conflicts occurred, and control of Kairouan itself changed hands at certain stages.
From a military base to a city that shaped the Maghreb
This is the most important point in the history of Kairouan. After the conquest phase, the city began to go beyond its military function.
Markets expanded, the population settled, mosques were built, the judiciary emerged, and scholars and jurists began to gather there. It became a centre in which the features of Maghrebi Islam took shape.
Then came the Umayyad state, followed by a period of governors, until Kairouan became the administrative and political centre of Ifriqiya.
In the Abbasid era, the Aghlabid dynasty emerged, which ruled Ifriqiya in the name of the Abbasid caliphate from 184 AH/800 CE and made Kairouan its capital. It was here that the city entered its golden age.
The Aghlabids: when Kairouan became the capital of a state
In the third century AH/ninth century CE, Kairouan became one of the most prominent capitals of the Islamic world.
It was no longer merely a base for armies; it became the seat of the Aghlabid state, and architecture, markets, crafts and the sciences flourished within it.
Sources on Islamic art indicate that the present mosque inherited the site of the first mosque built by Uqba, and that it was rebuilt in the Aghlabid period until it took most of its current dimensions.
UNESCO considers the Great Mosque one of the most important monuments of the first centuries of the Hijra, and regards it as a model that influenced mosque architecture in the Islamic Maghreb.
The mosque was not merely a building for prayer; it became the university of the city and its scholarly centre.

Kairouan: when the mosque became a school for the Maghreb
Among the most important things that shaped Kairouan's standing is that learning did not reach it as a secondary activity; it became part of the city's identity.
Asad ibn al-Furat was among the leading jurists of Ifriqiya, and his name is associated with the transmission of jurisprudential sciences from the East to the Maghreb. He also led the Islamic campaign against Sicily under the Aghlabids in 212 AH/827 CE.
Sahnun, who died in 240 AH/854 CE, became one of the greatest figures of the Maliki school, and his name is linked to the book al-Mudawwana, which became one of the most important sources of Maliki jurisprudence.
From here, Kairouan became one of the most important centres that consolidated the Maliki school in the Islamic Maghreb.
Traditional and scholarly historical sources on Kairouan indicate that its mosque became a centre for teaching the religious sciences, while modern sources note that the city hosted scholars in jurisprudence, hadith, medicine, mathematics and astronomy.
The sciences did not stop at jurisprudence
Kairouan was not a city of jurisprudence alone.
Among its figures was the physician Ishaq ibn Imran, who lived in the third century AH/ninth century CE. Then came Ibn al-Jazzar al-Qayrawani, who died around 369 AH/979 CE, one of the most renowned physicians of the Islamic world in his time. Influential medical works are attributed to him, and his writings later reached Europe through Latin translations.
This shows the wider picture of Kairouan: the city that carried the Maliki school to the Maghreb was at the same time producing medicine, mathematics, astronomy and literature. It was not only a religious metropolis; it was a city of knowledge.
Kairouan and the expansion towards al-Andalus
The influence of Kairouan did not stop at the borders of present-day Tunisia.
From Ifriqiya, Islamic armies moved towards the Far Maghreb, and then crossed into al-Andalus in 92 AH/711 CE under the leadership of Tariq ibn Ziyad.
The conquest of al-Andalus cannot be reduced to Kairouan alone, as it was the product of long stages of Islamic expansion in North Africa, in which many centres, forces and commanders took part.
Yet Kairouan was a pivotal part of the political and military structure that allowed this expansion to continue.
Thus the city became a link in a vast geographical chain: the East, Egypt, Kairouan, the Maghreb and then al-Andalus, and this is one of its greatest historical functions.
When the capital moved, the spirit remained
In the fourth century AH/tenth century CE, Ifriqiya entered a new phase with the Fatimids; the centre of government then moved to Mahdia, and later Tunis became an important political centre.
Then came the Zirid state, followed by major political transformations that ended in the decline of Kairouan's political standing, but the city did not lose its religious status.
Historical sources affirm that the move of the political capital to Tunis in the sixth century AH/twelfth century CE did not diminish Kairouan's standing as the principal holy city of the Islamic Maghreb.
This is one of the most important features of civilisational cities: a city may lose power, but it does not necessarily lose its memory.
The Great Mosque of Kairouan: the memory of the Islamic Maghreb
The Great Mosque of Kairouan remained the focal point of the city, and over the centuries it became one of the finest examples of Islamic architecture in North Africa. Its square minaret, its wide courtyard, its prayer hall with many columns, its mihrab and its old wooden minbar together form an architectural record of the development of Islamic art in Ifriqiya.
The Tunisian National Heritage Institute notes that the present mosque went through several stages of reconstruction and expansion, and that the major rebuilding in the Aghlabid period gave it its essential dimensions.
Alongside the mosque remain the Mosque of the Three Doors, which dates to the third century AH/ninth century CE, the Aghlabid reservoirs, and the old city with its walls and alleys, all testimonies to a metropolis that flourished centuries before many of the major Islamic cities of the Maghreb and al-Andalus emerged.
Kairouan: when the city became a bridge
Kairouan is not merely a historic Tunisian city. In the balance of Islamic civilisation, it is the bridge over which Islamic institutions, sciences and culture crossed from the East to the West.
From the Mosque of Uqba to the school of Sahnun, from the jurisprudence of Asad ibn al-Furat to the medicine of Ibn al-Jazzar, and from the armies of Ifriqiya to the route to al-Andalus, the city built layer upon layer of history.
Therefore, understanding the history of the Islamic Maghreb without understanding Kairouan means losing one of its most important links in the transition from conquest to civilisation.
This was the 12th episode of the series Islam's Metropolises, which highlighted Kairouan, the city known as the first major Arab-Islamic metropolis in the Maghreb, capital of Ifriqiya for centuries, and a centre for the consolidation of Islam, the Maliki school and the sciences in the Islamic West, and a base from which key stages of Islamic expansion towards the Maghreb and al-Andalus were launched.




