{
 "id": "person/musa-ibn-abi-al-afiya",
 "class": "person",
 "slug": "musa-ibn-abi-al-afiya",
 "label": {
  "ar": "موسى بن أبي العافية",
  "en": "Musa ibn Abi al-Afiya"
 },
 "summary": {
  "ar": "موسى بن أبي العافية المكناسي، أكبر ملوك بطنه على الإطلاق؛ دخل أولاً في مظاهرة الأدارسة وولّاه ابن إدريس على تاهرت والمغرب الأوسط، ثم دعا لعبيد الله المهدي الشيعي وطرد يحيى بن إدريس عن فاس وملك المغرب باسم القيروان، وحارب الحسن بن محمد الإدريسي الحجّام فكانت له العاقبة بوادي المطاحن بين تازا وفاس؛ ثم زحف إليه ميسور الخصي سنة 323هـ فاعتصم بحصن وأُجلي عن أعماله إلى نواحي ملوية ووطاط، وعاد من الصحراء فملك أعماله مرة أخرى وحاصر مدينة نكور، وبقي رأس مكناسة وموالياً لبني زيري إلى أن انقرض أمر بنيه على يد المرابطين.",
  "en": "Musa ibn Abi al-Afiya al-Miknasi, the greatest king of his branch; first an Idrisid client holding Tahert and the Middle Maghreb, then he proclaimed Ubaydallah al-Mahdi's da'wa, expelled Yahya ibn Idris from Fez and ruled the Maghreb for Qayrawan, beat the Idrisid al-Hajjam at Wadi al-Matahin between Taza and Fez — until the eunuch Maysur marched in 323 and exiled him to the Malwiyya desert; he returned, besieged Nekour, and remained chief of Miknasa as a Zirid client until the Almoravids destroyed his house."
 },
 "stub": false,
 "wings": [
  "people"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/abbasid-fragmentation"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "data": {
  "gender": "male",
  "roles": [
   "ruler",
   "military-commander"
  ],
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — دولة بني أبي العافية، سيرة موسى بن أبي العافية، ص1621-1623 (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-east-16"
  },
  "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": "موسى بن أبي العافية المكناسي، يصفه ابن خلدون بأنه أكبر ملوك بطنه. دخل أولاً في نصرة الأدارسة، وولّاه ابن إدريس على تاهرت والمغرب الأوسط. ثم دعا لعبيد الله المهدي، وطرد يحيى بن إدريس عن فاس، وملك المغرب باسم القيروان. {cite:tarikh-ibn-khaldun-ibar}\n\nويذكر ابن خلدون أنه حارب الحسن بن محمد الإدريسي الحجّام، فكانت له العاقبة بوادي المطاحن بين تازا وفاس. ثم زحف إليه ميسور الخصي سنة 323هـ فاعتصم بحصن وأُجلي إلى نواحي ملوية ووطاط. {cite:tarikh-ibn-khaldun-ibar}\n\nوعاد من الصحراء فملك أعماله، وحاصر مدينة نكور، وبقي رأس مكناسة موالياً لبني زيري إلى أن انقرض أمر بنيه على يد المرابطين. {cite:tarikh-ibn-khaldun-ibar}\n\nيحتاج إلى مصدر إضافي: تاريخا الميلاد والوفاة غير مذكورين، ويُحال إلى الصفحات 1621-1623 من طبعة هيليوبوليس دون تحقق من رقم الصفحة لكل جملة."
    }
   ],
   "frontmatter": {
    "id": "person/musa-ibn-abi-al-afiya",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Musa ibn Abi al-Afiya al-Miknasi, whom Ibn Khaldun describes as the greatest of the kings of his clan. He first entered the service of the Idrisids, and Ibn Idris appointed him over Tahart and the central Maghrib. He then gave the call for Ubayd Allah al-Mahdi, drove Yahya ibn Idris out of Fez, and held the Maghrib in the name of Kairouan. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "Wars",
     "markdown": "Ibn Khaldun says that he fought al-Hasan ibn Muhammad al-Idrisi al-Hajjam, and the outcome was his in the Wadi al-Matahin between Taza and Fez. Then Maysur the eunuch marched against him in 323 AH; he took refuge in a fortress and was expelled to the regions of Mluya and Watat. {cite:tarikh-ibn-khaldun-ibar}\n\nHe came back from the desert and took his governorships, besieged the city of Nakur, and the head of Miknasa remained loyal to the Banu Ziri until the line of his sons was ended at the hands of the Almoravids. {cite:tarikh-ibn-khaldun-ibar}\n\nThe dates of birth and death are not given, and the pages 1621–1623 of the Heliopolis edition are referred to without verifying the page for each sentence, so this needs an additional source."
    }
   ],
   "frontmatter": {
    "id": "person/musa-ibn-abi-al-afiya",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 0,
 "contemporaries": [],
 "connections": [],
 "related": [],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}