{
 "id": "event/mahdiyya-revolt-594",
 "class": "event",
 "slug": "mahdiyya-revolt-594",
 "label": {
  "ar": "عصيان المهدية على الموحدين",
  "en": "The Mahdiyya revolt (594–595 AH)"
 },
 "summary": {
  "ar": "كان أبو يوسف يعقوب المنصور لما عاد من إفريقية ولّى أبا سعيد عثمان تونس وأخاه أبا علي يونس بن عمر اينتي المهدية، وجعل قائد الجيش بالمهدية محمد بن عبد الكريم وهو شجاع مشهور عظمت نكايته في العرب؛ فلما أخذ لعرب من بني عوف فروا منه مالهم وعيالهم واستجار بنو عوف بأبي سعيد فأمره برد النعم فأغلظ له وأراد أن يبطش به، فعاد محمد إلى المهدية خائفاً فحالف أصحابه وقبض على الوالي أبي علي يونس وتغلب على المدينة، فأطلقه على اثني عشر ألف دينار وزعها في الجند، وحالف علي بن إسحاق الملثم ابن غانية فامتنع أبو سعيد من قصده؛ فلما مات يعقوب وولي ابنه محمد الناصر سيّر عسكراً في البحر وعسكراً في البر فهرب الملثم ومن معه إلى الصحراء، فلما وصل الأسطول المهدية قال محمد بن عبد الكريم: أنا على طاعة أمير المؤمنين محمد ولا أسلمها إلى أبي سعيد وإنما أسلمها إلى من يرسله أمير المؤمنين، فأرسل من تسلمها منه وعاد إلى الطاعة {cite:kamil-ibn-al-athir p. 259-260}.",
  "en": "The Almohad field-commander Muhammad ibn Abd al-Karim — terror of the Arabs of Ifriqiya — fell out with the vizier Abu Sa'id ibn Umar Inti over the Banu Awf captives, seized Mahdiyya, ransomed the governor for twelve thousand dinars, and allied with Ibn Ghaniya; when al-Mansur died, the new caliph Muhammad al-Nasir's sea and land armies came, Ibn Ghaniya fled to the desert, and Ibn Abd al-Karim answered the fleet: 'I obey the Commander of the Faithful Muhammad — I will only hand it to whom he sends' {cite:kamil-ibn-al-athir p. 259-260}."
 },
 "stub": false,
 "wings": [
  "time"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/crusades-ayyubid-mamluk"
 ],
 "tags": [],
 "aliases": [],
 "themes": [
  "civil-wars-and-revolts"
 ],
 "span": {
  "earliest": 1198.0005749604716,
  "latest": 1198.9999110179906
 },
 "display": {
  "start": {
   "hijri": "0594",
   "edtf": "1198",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "note": "امتدت الحادثة إلى أوائل 595؛ {cite:kamil-ibn-al-athir p. 259-260}.",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  },
  "end": {
   "hijri": "0594",
   "edtf": "1198",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "note": "امتدت الحادثة إلى أوائل 595؛ {cite:kamil-ibn-al-athir p. 259-260}.",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  }
 },
 "data": {
  "kind": "revolt",
  "date": {
   "start": {
    "hijri": "0594",
    "edtf": "1198",
    "calendar": "julian",
    "precision": "year",
    "status": "tradition",
    "note": "امتدت الحادثة إلى أوائل 595؛ {cite:kamil-ibn-al-athir p. 259-260}.",
    "sources": [
     "source/kamil-ibn-al-athir"
    ]
   }
  },
  "sources": [
   "source/kamil-ibn-al-athir"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "الكامل في التاريخ — ابن الأثير، مسح kamilt00_201908، ص 259-260",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "run": "lib-kamil-562-629-12"
  },
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High)"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "يروي ابن الأثير أن قائد الجيش في المهدية، [[person/muhammad-ibn-abd-al-karim|محمد بن عبد الكريم]]، تغلب على المدينة سنة 594هـ، ثم عاد إلى الطاعة بعد وفاة المنصور الموحدي. {cite:kamil-ibn-al-athir p.259-260}"
    },
    {
     "heading": "الخلاف مع الوالي",
     "markdown": "لما عاد يعقوب المنصور من إفريقية ولّى أبا سعيد عثمان تونس، وأخاه أبا علي يونس المهدية، وجعل محمداً قائد الجيش بها. ذكر ابن الأثير أن بني عوف فرّوا من العرب بمالهم وعيالهم، واستجاروا بأبي سعيد، فأمره بردّ النعم، فأغلظ له وأراد البطش به. {cite:kamil-ibn-al-athir p.259-260}"
    },
    {
     "heading": "التغلب والعودة",
     "markdown": "عاد محمد إلى المهدية خائفاً، وقبض على الوالي أبي علي يونس وتغلب على المدينة. ثم أطلقه على اثني عشر ألف دينار وزعها في الجند، وحالف [[person/ali-ibn-ghaniya|علي بن إسحاق الملثم ابن غانية]]. {cite:kamil-ibn-al-athir p.259-260}\n\nولما ولي الناصر بعد أبيه سيّر عسكراً في البحر وآخر في البر، فهرب الملثم إلى الصحراء. وقال محمد إنه على طاعة أمير المؤمنين ولا يسلمها إلا لمن يرسله، فأرسل من تسلمها منه وعاد إلى الطاعة. {cite:kamil-ibn-al-athir p.259-260}"
    }
   ],
   "frontmatter": {
    "id": "event/mahdiyya-revolt-594",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Ibn al-Athir relates that the commander of the army in al-Mahdiyya, [[person/muhammad-ibn-abd-al-karim|Muhammad ibn Abd al-Karim]], took control of the city in 594 AH, then returned to obedience after the death of the Almohad al-Mansur. {cite:kamil-ibn-al-athir p.259-260}"
    },
    {
     "heading": "The dispute with the governor",
     "markdown": "When Ya'qub al-Mansur returned from Ifriqiya, he appointed Abu Sa'id Uthman over Tunis, his brother Abu Ali Yunus over al-Mahdiyya, and made Muhammad the commander of the army there. Ibn al-Athir says that the Banu Awf fled from the Arabs with their property and families, and sought protection with Abu Sa'id, who ordered that the livestock be returned; Muhammad spoke harshly to him and wanted to strike him. {cite:kamil-ibn-al-athir p.259-260}"
    },
    {
     "heading": "Seizure and return",
     "markdown": "Muhammad went back to al-Mahdiyya in fear, seized the governor Abu Ali Yunus and took control of the city. Then he released him for twelve thousand dinars, which he distributed among the troops, and made an alliance with [[person/ali-ibn-ghaniya|Ali ibn Ishaq al-Mulaththam, Ibn Ghaniya]]. {cite:kamil-ibn-al-athir p.259-260}\n\nWhen al-Nasir succeeded his father, he sent one army by sea and another by land, and al-Mulaththam fled into the desert. Muhammad said that he was obedient to the commander of the faithful and would only hand the city over to whoever he sent; he sent those who took it from him, and returned to obedience. {cite:kamil-ibn-al-athir p.259-260}"
    }
   ],
   "frontmatter": {
    "id": "event/mahdiyya-revolt-594",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 4,
 "contemporaries": [],
 "connections": [
  {
   "to": "person/muhammad-ibn-abd-al-karim",
   "type": "had_participant",
   "inverse": true,
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  },
  {
   "to": "person/ali-ibn-ghaniya",
   "type": "had_participant",
   "inverse": true,
   "role": "حليف المتمرد",
   "sources": [
    "source/kamil-ibn-al-athir"
   ]
  }
 ],
 "related": [
  "person/ali-ibn-ghaniya",
  "person/muhammad-ibn-abd-al-karim",
  "event/ibn-ghaniya-ifriqiya-581",
  "event/ibn-ghaniya-takes-bejaia-580",
  "event/abu-muslim-enters-marw-130",
  "event/akhlat-fitna-604",
  "event/alpujarras-conversion-revolt-904",
  "event/apostasy-of-amr-ibn-madikarib"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}