The Founding of Qayrawan

اختطاط القيروان

c. 670 CE · c. 50 AH

Qayrawan → Ifriqiya

In al-Baladhuri: Mu'awiya ibn Khudayj sent — or, some say, Mu'awiya ibn Abi Sufyan gave him the Maghreb — Uqba ibn Nafi' al-Fihri, who raided Ifriqiya with ten thousand Muslims, conquered it, and laid out its Qayrawan, whose site was a thicket of trees and thickets unapproachable for beasts, snakes and deadly vermin; Uqba being a righteous man whose prayer was answered, he prayed to his Lord and all that was removed — till the very beasts carried away their young in flight; and Musa ibn Ali said the first to build it was Uqba ibn Nafi', who laid it out then built — the people building houses and dwellings with him — and built its congregational mosque; and a body of Ifriqiya's people told from their shaykhs that when Uqba wished to make Qayrawan a misr he pondered where its mosque should be, and saw in a dream as though a man gave the call to prayer in the place where its minaret stood — so when morning came he built the minarets in the man's station, then built the mosque. Al-Waqidi said Abdallah ibn Sa'd stayed governor until Muhammad ibn Abi Hudhayfa (may God be pleased with him) seized Egypt; then Mu'awiya gave Maslama ibn Mukhallad al-Ansari Egypt and the Maghreb, and he gave the Maghreb to his mawla Abu al-Muhajir; when Yazid ibn Mu'awiya ruled he restored Uqba to his office — who raided Sus al-Adna beyond Tangier, roaming unchallenged till he returned; Abu al-Abbas gave Muhammad ibn al-Ash'ath al-Khuza'i Ifriqiya — he repaired Qayrawan's city and mosque — then al-Mansur dismissed him and gave his place to Umar ibn Hafs Hazarmard.

Depth

At a glance

Era
The Umayyad Period
Region
Maghreb

In time

660670680 c.
The Rashidun Caliphate · The Umayyad Period

In space

QayrawanIfriqiya

Map: Natural Earth, public domain · places and route from the graph

Overview

Al-Baladhuri reports that Uqba ibn Nafi al-Fihri raided Ifriqiya with ten thousand Muslims, conquered it, and laid out al-Qayrawan. The motive was Mu'awiya ibn Hudayj, and it is said that Mu'awiya ibn Abi Sufyan appointed him over the Maghrib. 1

The site

The site had been a thicket of trees and tamarisk that no beast of prey or serpent could approach. Uqba was a righteous man whose prayers were answered, so he prayed to his Lord, and all of it went away, until beasts carried their young away in flight. This is what al-Baladhuri relates. 2

The building

Al-Baladhuri relates from Musa ibn Ali that Uqba laid it out, and the people built houses and dwellings with him, and he built the congregational mosque. Several people of Ifriqiya narrated that he was shown in a dream the one who would call to prayer on the site, so he built the minarets there and then the mosque. 2

After Uqba

Maslama ibn Mukhallad al-Ansari appointed his client Abu al-Muhajir governor of the Maghrib. Then Yazid restored Uqba to his post. Abu al-Abbas Muhammad ibn al-Ash'ath al-Khuza'i repaired the city and mosque, and then al-Mansur removed him. 3

The date

The date is about 50 AH, in the governorship of Mu'awiya ibn Hudayj over Egypt; the conversion is derived. 1

In Ibn Abd al-Hakam

Ibn Abd al-Hakam reports that Uqba did not like the camp Mu'awiya ibn Hudayj had set up, and came to the site of al-Qayrawan as it is today, a wooded valley haunted by wild beasts and vermin. He called out three times at the top of his voice, "O people of the valley, depart, for we are settling here," then planted his lance and said, "This is your qayrawan." 4 5 In al-Layth's version the snakes and scorpions came out while the people watched; Ziyad ibn Ajlan reports from al-Layth that for forty years afterwards no snake or scorpion could be found there even for a thousand dinars. 5 Later Hassan ibn al-Nu'man settled at the site of al-Qayrawan and built its congregational mosque. 6

Connections

Explore the connections

Had participant
Maslama ibn Mukhallad al-Ansari· Muhammad ibn al-Ash'ath al-Khuza'i· Uqba ibn Nafi' al-Fihri· Mu'awiya ibn Khudayj al-Kindi
Occurred at
Qayrawan· Ifriqiya
During the reign of
Mu'awiya ibn Abi Sufyan

People and things also explored

The Arabisation of the Maghrib· The First Raid on Sicily and Abdallah ibn Qays's Plunder· The Ifriqiyan Army's Rising against Ibn al-Ash'ath in His Palace· The Taking of Qal'at Busr· The Nubian Peace· Ruh ibn Hatim al-Muhallabi· Mecca· Medina

Sources

  1. Futuh al-Buldan — al-Baladhuri (Mu'assasat al-Ma'arif edition) , p.319-320
  2. Futuh al-Buldan — al-Baladhuri (Mu'assasat al-Ma'arif edition)
  3. Futuh al-Buldan — al-Baladhuri (Mu'assasat al-Ma'arif edition) , p.322
  4. Futuh Misr wa-l-Maghrib — Ibn Abd al-Hakam (ed. Abd al-Mun'im Amir, al-Hay'a al-Amma li-Qusur al-Thaqafa) , p. 264
  5. Futuh Misr wa-l-Maghrib — Ibn Abd al-Hakam (ed. Abd al-Mun'im Amir, al-Hay'a al-Amma li-Qusur al-Thaqafa) , p. 265
  6. Futuh Misr wa-l-Maghrib — Ibn Abd al-Hakam (ed. Abd al-Mun'im Amir, al-Hay'a al-Amma li-Qusur al-Thaqafa) , p. 271
  • Muhammad Qabbani, The Umayyad State from Birth to Fall (Damascus: Dar Wahy al-Qalam, 2006)
Cite this page

islam.museum contributors. “The Founding of Qayrawan”. islam.museum, https://islam.museum/en/event/founding-of-qayrawan/. CC BY-SA 4.0. Last updated 2026-11-22.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

Time

Eras, timelines, this day in history, any year in the Islamic world.
Related

The Arabisation of the Maghrib

What a research summary supplied to the museum says about the Arabisation of the Maghrib in two waves: a first, urban and coastal, that began with the founding of Kairouan in 670 CE and produced urban pre-Hilalian dialects, and a second, Bedouin, carried by the migrations of the Banu Hilal and Banu Sulaym in the 11th century and then the Ma'qil and the Banu Hassan between the 13th and 15th centuries, which Arabised the countryside and the steppes. The museum did not open the pages named, and the founder approved using the summary on 21 November 2026.