{
 "id": "event/abu-yazid-siege-mahdiyya-333",
 "class": "event",
 "slug": "abu-yazid-siege-mahdiyya-333",
 "label": {
  "ar": "حصار أبي يزيد للمهدية",
  "en": "The Siege of al-Mahdiyya by Abu Yazid"
 },
 "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": 945.0015400726913,
  "latest": 946.0008761302106
 },
 "display": {
  "start": {
   "edtf": "0945",
   "hijri": "0333",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "333؛ التحويل مشتق {cite:kamil-ibn-al-athir p. 318}."
  },
  "end": {
   "edtf": "0945",
   "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": "0945",
    "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": []
   },
   "updated": "2026-10-16"
  },
  "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"
    ]
   },
   "updated": "2026-10-16"
  },
  "ur": {
   "sections": [
    {
     "heading": "خلاصہ",
     "markdown": "ابن الاثیر ذکر کرتے ہیں کہ سنہ 333ھ میں [[person/abu-yazid-makhlad|ابو یزید مخلد بن کیداد]]، جو صاحب الحمار کے نام سے معروف تھے، نے [[place/mahdiyya|المہدیہ]] میں عبیدی [[person/al-qaim-fatimid|القائم]] کا محاصرہ کیا۔ {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": "ur",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   },
   "updated": "2026-10-18"
  }
 },
 "degree": 8,
 "contemporaries": [],
 "updated": "2026-10-27",
 "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/killing-of-ziri-ibn-manad-360",
  "person/abu-yazid-makhlad",
  "person/al-qaim-fatimid",
  "person/ziri-ibn-manad",
  "concept/ahl-al-harb",
  "concept/anfal",
  "concept/angels-at-badr",
  "concept/dissuading-from-jihad"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}