Port · Mahdia under the rebel al-Ragragi · as at first light, 1 January 1200

Mahdia

Mahdia, the Fatimid capital founded on its rocky peninsula in 916-921, is one of the strongest towns in Africa: a single landward wall with a great vaulted gate, a harbour cut in the rock and closed by a chain, an arsenal, and the Fatimid great mosque.

The Normans of Sicily held it from 1148 to January 1160, when Abd al-Mu'min took it after a long siege. Since mid-1199 it has been the lordship of the rebel Almohad soldier al-Ragragi, who seized the governor and declared it independent.

Who holds it

Name
Muhammad ibn Abd al-Karim al-Ragragi, al-Mutawakkil
Title
Ruler by revolt
Since
Sha'ban 595 (about June 1199)
Born
Not pinned
Family
Not known
Confidence
high

Ibn Khaldun vol. 2, p. 106; Arabic Wikipedia.

Lord in 1200

Muhammad ibn Abd al-Karim al-Ragragi (rebel)

How things stand that morning

Held by the rebel, at war with the Almohads of Tunis.

Council

The rebel lord and his officers; the qadi and townsmen, names not known.

Communities

Maliki Muslims; the soldiers of the Almohad garrison who joined the revolt; Jews and foreign merchants not documented for 1200.

Militia

The town's fighting men and the paid soldiers who followed the rebel; they had fought Arab raiders under him.

Walls and castle

The Fatimid landward wall and gate (the later Skifa al-Kahla), the rock-cut harbour, arsenal and great mosque.

Trade and crafts

Sea trade, olive oil of the Sahel, textiles; once the greatest port of the Zirids.

What the year holds

What happened next, if nothing in play changes it. Each event carries what it depends on and what would stop it.

In 1200

  1. 597 AH (October 1200 to September 1201)Yahya ibn Ghaniya takes Mahdia after a siege by land and sea; it becomes his treasury town, later governed by his nephew Ali ibn al-Ghazi.Depends on: The rebel's defeat near Gafsa. Stopped by: The rebel making peace with Yahya.

Later, on the likely course

  1. 27 Jumada I 602 (9 January 1206)Ali ibn al-Ghazi surrenders Mahdia to al-Nasir.Depends on: Al-Nasir's campaign. Stopped by: A relief of Mahdia.

Where the sources disagree

Evidence: The revolt is dated by Ibn Khaldun and Arabic Wikipedia.

Primary sources for Mahdia (al-Ragragi)

Chronicles, registers, sagas and inscriptions written in or near 1200 that cover this entry. Each has its own page with editions, translations and where to read it.

  • History of the Two Dynasties, the Almohad and the Hafsid, al-Zarkashi (Muhammad ibn Ibrahim al-Lu'lu'i al-Zarkashi) (about 1490 to 1495, at Tunis). A short Hafsid-era chronicle whose Almohad opening gives, in a few lines a reign, the succession of al-Mansur and al-Nasir, the Banu Ghaniya's seizure of Ifriqiya and its recovery, and the sending of Abd al-Wahid ibn Abi Hafs to Tunis, which the Hafsids counted as the start of their house. Read online
  • The Complete History: the passages on the Maghreb and al-Andalus, Ibn al-Athir (about 1220 to 1231, at Mosul). The year entries for 595 to 597 of the Hijra (late 1198 to 1201) record the death of Yaqub al-Mansur, the accession of al-Nasir and the opening of Yahya ibn Ghaniya's war in Ifriqiya; the following years follow Yahya and the Ghuzz captain Qaraqush through Tripoli, Gabès and Mahdia to al-Nasir's reconquest in 1206, with the best eastern account of Qaraqush's career. Read online
  • The Wondrous Account of the History of al-Andalus and the Maghreb, Ibn Idhari al-Marrakushi (about 1312, at Marrakesh). The Almohad section is the fullest year-by-year narrative of the caliphate around 1200: the last campaigns and the death of Abu Yusuf Yaqub al-Mansur in January 1199, the accession of his son Muhammad al-Nasir, the renewed war of the Banu Ghaniya in Ifriqiya under Yahya ibn Ishaq and his ally Qaraqush, the Almohad losses of Mahdia and Tunis a few years later, and al-Nasir's reconquest of Ifriqiya in 1205 to 1206 followed by the appointment of Abd al-Wahid ibn Abi Hafs as governor. Read online
  • The Book of Examples: the History of the Berbers and of the Muslim Dynasties of North Africa, Ibn Khaldun (1375 to 1379 at Qal'at Ibn Salama and Tunis, revised until 1406). Ibn Khaldun's tribal histories are the standard account of the powers that Almohad chronicles treat as background: the Banu Hilal and Banu Sulaym in Ifriqiya and Tripolitania and their alliances with the Banu Ghaniya and Qaraqush; the Zenata of the central Maghreb (Banu Marin, Banu Abd al-Wad, Tujin, Maghrawa) before their rise; the Sanhaja and the veiled peoples of the Sahara; the Masmuda and the Almohad tribes. Read online
  • The Pleasant Book: a Summary of the History of the Maghreb, Abd al-Wahid al-Marrakushi (completed in 1224, in the East, after the author left the Maghreb in 1217). Abd al-Wahid was a boy of fifteen at Fez and Marrakesh in 1200 and later moved in Almohad court circles, so his account of Yaqub al-Mansur (died January 1199) and of the first years of Muhammad al-Nasir is partly from memory and from men he knew: the character of the new caliph, the weakness that let the Banu Ghaniya overrun Ifriqiya, the Majorca expedition of 1203 and the Ifriqiya campaign of 1205 to 1206. Read online
  • Official Letters of the Almohad Chancery (1140s to 1260s; the letters nearest 1200 are of the reigns of al-Mansur and al-Nasir). Circular letters from the caliphs to governors, tribes and towns announcing victories, appointments and policy, preserved in later manuscript collections.
  • The Cairo Geniza Documents (about 950 to 1250 for the bulk of the historical documents). Letters, court records, accounts and lists from the Ben Ezra synagogue in Fustat that show the working of the trade that bound Egypt to Ifriqiya, Sicily, al-Andalus, Aden and India. Read online
  • Dictionary of Countries: the entries on Africa, Yaqut al-Hamawi (1224 to 1228, at Mosul and Aleppo). Entries written within a generation of 1200 from earlier books and from informants: Maqdishu (Mogadishu), described as a town of the Barbar (Somali) on the edge of the Zanj country with no single ruler but elders for each group, the earliest notice of the town; Manbasa (Mombasa), Lanjuya (Zanzibar) and the Zanj coast; Zayla, Barbara and the Dahlak islands; Dunqula (Dongola) and the Nubians; the Beja; Kanem, Zaghawa, Ghana, Kawkaw and the Sudan, mostly from al-Bakri and al-Idrisi; and the towns of Ifriqiya and the Maghreb. Read online

3 more in the sources library for The Maghreb and the Sahara.

Sources and studies

  1. Ibn Khaldun, Histoire des Berberes, tr. de Slane, vol. 2 (1854): the Banu Ghaniya and Qaraqush (pp. 100-111), the Almohads (pp. 224-228), the Hafsids (pp. 291-293); read through the archive.org full-text search
  2. Arabic Wikipedia, Banu Ghaniya (after Ibn al-Athir, al-Tijani, Ibn Idhari, Ibn Khaldun, Bel 1903): Mahdia seized in Sha'ban 595; battle near Gafsa 597; Tunis entered 7 Rabi II 600 (15 December 1203)
  3. Arabic article on the revolts against the Almohads, Journal of Tikrit University for the Humanities (after Ibn Khaldun, Ibn Idhari, al-Zarkashi): the Mahdia revolt of 595, the siege of Tunis in 596, the siege of Mahdia in 597
  4. Chronique des Almohades et des Hafcides attribuee a Zerkechi, tr. E. Fagnan (1895), pp. 11-13 of the text (Abu Zayd governor of Ifriqiya from 584/1188; Mahdia surrendered 9 January 1206)

Last revised 4 November 2026. Published 4 November 2026. Suggest a correction on the OMNIA Discord.