{
 "id": "event/kairouan-disaster-748",
 "class": "event",
 "slug": "kairouan-disaster-748",
 "label": {
  "ar": "واقعة القيروان",
  "en": "The Kairouan disaster"
 },
 "summary": {
  "ar": "أعظم وقائع دولة بني مرين: ثارت عرب إفريقية من أولاد مهلهل والكعوب وبني سليم على عساكر السلطان أبي الحسن المريني ونصبوا على رأسهم أحمد بن حمزة العائد من الإسكندرية، فزحف إليهم السلطان من تونس أيام الحج سنة 748هـ ولقيهم بالثنية دون القيروان فغلبهم، ثم تدامروا وانتقضوا عليه فأحاطوا به في القيروان واختل مصافه ودخلوها وانتهبوا معسكره، وخلص هو إلى سوسة وركب منها في أساطيله إلى تونس، وقد أجلب العرب وابن أبي دبوس معهم على الحضرة ونازلوها، حتى رحل السلطان عن إفريقية راجعاً إلى المغرب إذ وثب ابنه أبو عنان على الملك في غيبته.",
  "en": "The greatest battle of the Marinid era: the Arabs of Ifriqiya — sons of Mihhal, the Ka'ub and Banu Sulaym — rose against Abu al-Hasan's army and set over themselves Ahmad ibn Hamza back from Alexandria; the sultan marched in the hajj days of 748 and routed them at the defile below Kairouan, but they regathered, turned and hemmed him in the city, broke his ranks and plundered his camp, while he escaped to Susa and sailed for Tunis as the Arabs with Ibn Abi Dabbus laid siege to the capital — until he abandoned Ifriqiya for the Maghreb, his son Abu Inan having seized the throne in his absence."
 },
 "stub": false,
 "wings": [
  "time"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/mongol-post-mongol"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1347.9995482453437,
  "latest": 1349.00162220987
 },
 "display": {
  "start": {
   "edtf": "1348",
   "hijri": "0748-12",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "أيام الحج سنة 748هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "end": {
   "edtf": "1348",
   "hijri": "0748-12",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "أيام الحج سنة 748هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 },
 "data": {
  "kind": "battle",
  "date": {
   "start": {
    "edtf": "1348",
    "hijri": "0748-12",
    "calendar": "julian",
    "precision": "month",
    "status": "tradition",
    "derived": true,
    "note": "أيام الحج سنة 748هـ؛ التحويل مشتق.",
    "sources": [
     "source/tarikh-ibn-khaldun-ibar"
    ]
   }
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — الخبر عن حصار القصبة بتونس ووقعة القيروان، ص1761-1762 (المجلد السادس، طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-maghreb-2"
  },
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High); extracted from Ibn Khaldun al-Ibar via Apple Vision OCR"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "يذكر ابن خلدون وقعة القيروان سنة 748هـ، ويعدّها أعظم وقائع دولة بني مرين. {cite:tarikh-ibn-khaldun-ibar p.1761}"
    },
    {
     "heading": "الخبر",
     "markdown": "ثارت عرب إفريقية من أولاد مهلهل والكعوب وبني سليم على عساكر السلطان [[person/abu-al-hasan-al-marini|أبي الحسن المريني]]، ونصبوا عليهم أحمد بن حمزة. فزحف إليهم السلطان من تونس أيام الحج، ولقيهم بالثنية دون القيروان فغلبهم. {cite:tarikh-ibn-khaldun-ibar p.1761}"
    },
    {
     "heading": "الانقلاب",
     "markdown": "ثم انتقضوا وأحاطوا به في القيروان، واختل مصافه ونُهب معسكره. وخلص إلى سوسة وركب أساطيله إلى تونس. ونازل العرب تونس حتى رحل السلطان إلى المغرب، إذ وثب ابنه [[person/abu-inan-faris|أبو عنان]] على الملك. {cite:tarikh-ibn-khaldun-ibar p.1762}"
    }
   ],
   "frontmatter": {
    "id": "event/kairouan-disaster-748",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Ibn Khaldun records the battle of Qayrawan in 748 AH, and counts it among the greatest events of the Marinid state. {cite:tarikh-ibn-khaldun-ibar p.1761}"
    },
    {
     "heading": "The account",
     "markdown": "The Arabs of Ifriqiya from the sons of Muhalhil, the Ka'ub and the Banu Sulaym rose against the armies of the sultan [[person/abu-al-hasan-al-marini|Abu al-Hasan al-Marini]], and set Ahmad ibn Hamza over them. The sultan advanced against them from Tunis at the time of the pilgrimage, met them at al-Thaniyya before Qayrawan, and defeated them. {cite:tarikh-ibn-khaldun-ibar p.1761}"
    },
    {
     "heading": "The reversal",
     "markdown": "Then they broke their word again and surrounded him in Qayrawan. His battle line collapsed and his camp was plundered. He reached Sousse and boarded his fleets to Tunis. The Arabs besieged Tunis until the sultan withdrew to the Maghrib, when his son [[person/abu-inan-faris|Abu Inan]] rose up to seize the kingdom. {cite:tarikh-ibn-khaldun-ibar p.1762}"
    }
   ],
   "frontmatter": {
    "id": "event/kairouan-disaster-748",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 4,
 "contemporaries": [],
 "connections": [
  {
   "to": "person/abu-al-hasan-al-marini",
   "type": "had_participant",
   "inverse": true,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "person/abu-inan-faris",
   "type": "had_participant",
   "inverse": true,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 ],
 "related": [
  "person/abu-al-hasan-al-marini",
  "person/abu-inan-faris",
  "event/battle-of-tarifa-741",
  "event/battle-of-the-strait-740",
  "event/fall-of-algeciras-744",
  "event/marinid-entry-tunis-748",
  "person/abu-salim-ibrahim-marinid",
  "polity/marinid-dynasty"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}