{
 "id": "event/abu-yazid-siege-mahdiyya-333",
 "class": "event",
 "slug": "abu-yazid-siege-mahdiyya-333",
 "label": {
  "ar": "حصار أبي يزيد للمهدية"
 },
 "summary": {
  "ar": "في سنة ثلاث وثلاثين وثلاثمائة حاصر أبو يزيد مخلد بن كيداد صاحب الحمار القائمَ العبيدي في المهدية؛ فلما تهيّأت صنهاجة وكتامة لنصرة القائم خاف ورحل نحو المهدية فنزل على خمسة عشر ميلاً منها وبثّ سراياه، واتفقت كتامة وأصحاب القائم على الخروج إليه فباغتهم وقد وصله ولده بعسكر من القيروان فهزمهم وتبعهم إلى باب الفتح، ثم تقّدم في جمادى الآخرة فجاوز السور وأشرف على المدينة حتى بلغ بابها عند مصلّى العيد وأهل زويلة يطلبون الأمان، وخاف المقامَ لما وصل زيري بن مناد في صنهاجة فتحيّر وردّه أهل الناحية فعاد إلى منزله ثم رحل إلى ترفوضة فحفر على معسكره خندقاً، واجتمع إليه خلق عظيم من إفريقية والبربر ونفوسة والزاب وأقصى المغرب فحصر المهدية حصاراً شديداً ومنع الناس الدخول والخروج، وزحف إليها أربع زحوف من جمادى الآخرة إلى شوال وفي إحداها قبض عبيدي على لجام فرسه فكاد يؤخذ لولا أن قطع رجل من أصحابه يد القابض، وعظم البلاء على أهل المهدية حتى أكلوا الدواب والميتة وفتح القائم أهراء المهدي وفرّق ما فيها على رجاله، وكان البربر يأخذون من خرج فيقتلونه ويشقون بطنه طلباً للذهب حتى لم يبق في إفريقية معمور ولا سقف مرفوع {cite:kamil-ibn-al-athir p. 318-321}.",
  "en": "In 333, Abu Yazid Makhlad ibn Kaydad — 'the man of the donkey' — besieged the Ubaydid caliph al-Qa'im in al-Mahdiyya. Four assaults followed through the year; famine inside the walls grew so severe that the people ate beasts and carrion, and al-Qa'im opened the Mahdi's granaries to his men {cite:kamil-ibn-al-athir p. 318-321}."
 },
 "stub": false,
 "wings": [
  "time"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/buyid-seljuk-fatimid-era"
 ],
 "tags": [],
 "aliases": [],
 "themes": [
  "wars-and-campaigns"
 ],
 "span": {
  "earliest": 9450.000273790702,
  "latest": 9459.99911018019
 },
 "display": {
  "start": {
   "edtf": "945",
   "hijri": "0333",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "333؛ التحويل مشتق {cite:kamil-ibn-al-athir p. 318}."
  },
  "end": {
   "edtf": "945",
   "hijri": "0333",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "333؛ التحويل مشتق {cite:kamil-ibn-al-athir p. 318}."
  }
 },
 "data": {
  "kind": "siege",
  "date": {
   "start": {
    "edtf": "945",
    "hijri": "0333",
    "calendar": "julian",
    "precision": "year",
    "status": "tradition",
    "derived": true,
    "note": "333؛ التحويل مشتق {cite:kamil-ibn-al-athir p. 318}."
   }
  },
  "provenance": {
   "layer": "own-research",
   "source": "الكامل في التاريخ لابن الأثير (ط دار الكتاب العربي، بيروت) ج 6 ص 318–321",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "run": "lib-kamil-296-batch-1"
  },
  "sources": [
   "source/kamil-ibn-al-athir"
  ],
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High); needs_source: date (second source to be checked)"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "يذكر ابن الأثير أنه في سنة 333هـ حاصر [[person/abu-yazid-makhlad|أبو يزيد مخلد بن كيداد]]، صاحب الحمار، القائمَ العبيدي ([[person/al-qaim-fatimid|القائم]]) في [[place/mahdiyya|المهدية]]. {cite:kamil-ibn-al-athir p. 318-321}"
    },
    {
     "heading": "قبل الحصار",
     "markdown": "لما تهيأت صنهاجة وكتامة لنصرة القائم خاف أبو يزيد ورحل نحو المهدية، فنزل على خمسة عشر ميلاً منها وبثّ سراياه. فاتفقت كتامة وأصحاب القائم على الخروج إليه، فباغتهم وقد وصله ولده بعسكر من القيروان، فهزمهم وتبعهم إلى باب الفتح. {cite:kamil-ibn-al-athir p. 318-321}\n\nثم تقدم في جمادى الآخرة فجاوز السور وأشرف على المدينة حتى بلغ بابها عند مصلى العيد. ثم وصل [[person/ziri-ibn-manad|زيري بن مناد]] في صنهاجة، فتحيّر أبو يزيد، ثم رحل إلى ترفوضة وحفر على معسكره خندقاً. {cite:kamil-ibn-al-athir p. 318-321}"
    },
    {
     "heading": "الحصار",
     "markdown": "اجتمع إليه خلق عظيم من إفريقية والبربر ونفوسة والزاب وأقصى المغرب. فحصر المهدية حصاراً شديداً ومنع الناس الدخول والخروج. وزحف إليها أربع زحوف من جمادى الآخرة إلى شوال. {cite:kamil-ibn-al-athir p. 318-321}\n\nعظم البلاء على أهل المهدية حتى أكلوا الدواب والميتة. وفتح القائم أهراء المهدي وفرّق ما فيها على رجاله. وذكر الراوي أن البربر كانوا يقتلون من خرج ويشقون بطنه طلباً للذهب، حتى لم يبق في إفريقية معمور ولا سقف مرفوع. {cite:kamil-ibn-al-athir p. 318-321}\n\nالتحويل الميلادي مشتق. يحتاج إلى مصدر إضافي لتأكيد التاريخ."
    }
   ],
   "frontmatter": {
    "id": "event/abu-yazid-siege-mahdiyya-333",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Ibn al-Athir reports that in 333 AH [[person/abu-yazid-makhlad|Abu Yazid Makhlad ibn Kaydad]], the Man of the Donkey, besieged the Fatimid caliph [[person/al-qaim-fatimid|al-Qa'im]] in [[place/mahdiyya|al-Mahdiyya]]. {cite:kamil-ibn-al-athir p. 318-321}"
    },
    {
     "heading": "Before the siege",
     "markdown": "When the Sanhaja and Kutama prepared to support al-Qa'im, Abu Yazid grew afraid and moved toward al-Mahdiyya. He camped fifteen miles from it and sent out his raiding parties. Kutama and al-Qa'im's men agreed to come out against him, but he surprised them. His son reached him with a force from Qayrawan, and he defeated them and pursued them to Bab al-Fath. {cite:kamil-ibn-al-athir p. 318-321}\n\nIn Jumada al-Akhira he advanced, crossed the wall and looked over the city until he reached its gate, near the prayer ground for the Eid. Then [[person/ziri-ibn-manad|Ziri ibn Manad]] arrived with the Sanhaja, and Abu Yazid was bewildered. He moved to Tarfawda and dug a trench around his camp. {cite:kamil-ibn-al-athir p. 318-321}"
    },
    {
     "heading": "The siege",
     "markdown": "A great multitude gathered to him from Ifriqiya, the Berbers, Nafusa, al-Zab and the far Maghrib. He besieged al-Mahdiyya tightly and prevented people from entering and leaving. He made four assaults between Jumada al-Akhira and Shawwal. {cite:kamil-ibn-al-athir p. 318-321}\n\nThe hardship on the people of al-Mahdiyya grew until they ate the beasts and carrion. al-Qa'im opened the granaries of al-Mahdi and distributed what was in them among his men. The narrator says that the Berbers killed anyone who came out and slit his belly in search of gold, until no inhabited place or raised roof remained in Ifriqiya. {cite:kamil-ibn-al-athir p. 318-321}\n\nThe Gregorian conversion is derived. An additional source is needed to confirm the date."
    }
   ],
   "frontmatter": {
    "id": "event/abu-yazid-siege-mahdiyya-333",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 8,
 "contemporaries": [],
 "connections": [
  {
   "to": "person/abu-yazid-makhlad",
   "type": "had_participant",
   "inverse": true,
   "role": "المحاصِر المتمرد",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  },
  {
   "to": "person/al-qaim-fatimid",
   "type": "had_participant",
   "inverse": true,
   "role": "المحصور في المهدية",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  },
  {
   "to": "person/ziri-ibn-manad",
   "type": "had_participant",
   "inverse": true,
   "role": "قائد صنهاجة المنجد",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  },
  {
   "to": "place/mahdiyya",
   "type": "occurred_at",
   "inverse": false,
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  }
 ],
 "related": [
  "event/norman-capture-mahdiyya-543",
  "person/abu-yazid-makhlad",
  "person/al-qaim-fatimid",
  "person/ziri-ibn-manad",
  "place/mahdiyya",
  "event/abyssinian-occupation-of-yemen",
  "event/almoravid-takes-seville-484",
  "event/balanjar-disaster-32"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}