{
 "id": "polity/banu-ghaniya",
 "class": "polity",
 "slug": "banu-ghaniya",
 "label": {
  "ar": "بنو غانية",
  "en": "Banu Ghaniya"
 },
 "summary": {
  "ar": "بنو غانية من بقية المرابطين؛ بيت مسوفة من الملثمين، كان يحيى المسوفي من رجالات المرابطين وشجعانهم مقدماً عند يوسف بن تاشفين، فقتل وترك من امرأة اسمها غانية ولدين محمداً ويحيى نشآ في ظل يوسف بن تاشفين، فعقد علي بن يوسف ليحيى على غرب الأندلس وأنزله قرطبة وللمحمد على الجزائر الشرقية ميورقة ومنورقة ويابسة سنة 520هـ، واستبد بالأمر إسحاق بن محمد إلى أن هلك سنة 580هـ مخلفاً ثمانية من الولد، ثم نقل ابنه علي بن محمد إلى إفريقية فطرق بجاية على حين غفلة في صفر 581هـ وافتتح الجزائر ومازونة ومليانة وحاصر القلعة وملك قفصة ونازل طرابلس، وجاهده الموحدون براً وبحراً في حروب مشهورة إلى انقراض أمرهم.",
  "en": "Banu Ghaniya, remnant of the Almoravids; a Massufa house of the veiled tribes — Yahya al-Massufi their champion honoured by Yusuf ibn Tashfin, slain leaving by a wife named Ghaniya two sons Muhammad and Yahya raised in the sultan's care; Ali ibn Yusuf granted Yahya the western Andalus seated at Cordoba and Muhammad the eastern isles Majorca, Menorca and Ibiza in 520, and Ishaq ibn Muhammad held all until his death in 580 leaving eight sons — then his son Ali ibn Muhammad carried the house to Ifriqiya, striking Béjaïa unawares in Safar 581, taking Algiers, Mazuna and Milyana, besieging the Qal'a, ruling Qafsa and investing Tripoli, fighting the Almohads by land and sea in famous wars until their house was extinguished."
 },
 "stub": false,
 "wings": [],
 "regions": [
  "maghreb",
  "andalus-europe"
 ],
 "periods": [
  "period/crusades-ayyubid-mamluk"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "data": {
  "kind": "dynasty",
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — دولة ابن غانية من بقية المرابطين، ص1650-1652 (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-maghreb-34"
  },
  "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": "بنو غانية من بقية [[polity/almoravid-dynasty|المرابطين]]، وبيتهم من مسوفة الملثمين. يذكر ابن خلدون أن يحيى المسوفي كان من رجالات المرابطين وشجعانهم، مقدماً عند يوسف بن تاشفين. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "النشأة",
     "markdown": "قُتل يحيى، وترك من امرأة اسمها غانية ولدين، محمداً ويحيى، نشآ في ظل يوسف بن تاشفين. فعقد علي بن يوسف ليحيى على غرب الأندلس وأنزله قرطبة، ولمحمد على الجزائر الشرقية ميورقة ومنورقة ويابسة، سنة 520هـ. {cite:tarikh-ibn-khaldun-ibar}\n\nاستبد بالأمر إسحاق بن محمد إلى أن هلك سنة 580هـ، مخلفاً ثمانية من الولد. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "في إفريقية",
     "markdown": "نقل ابنه علي بن محمد الأمر إلى إفريقية. فطرق بجاية على حين غفلة في صفر 581هـ، وافتتح الجزائر ومازونة ومليانة، وحاصر القلعة، وملك قفصة، ونازل طرابلس. {cite:tarikh-ibn-khaldun-ibar}\n\nجاهدهم [[polity/almohad-caliphate|الموحدون]] براً وبحراً في حروب مشهورة إلى انقراض أمرهم. {cite:tarikh-ibn-khaldun-ibar}\n\nيحتاج إلى مصدر إضافي: التواريخ، ومصدر ثانٍ غير ابن خلدون."
    }
   ],
   "frontmatter": {
    "id": "polity/banu-ghaniya",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Banu Ghaniya are the remnant of the [[polity/almoravid-dynasty|Almoravids]], and their house is of the veiled Masufa. Ibn Khaldun says that Yahya al-Masufi was among the men and brave ones of the Almoravids, held in esteem by Yusuf ibn Tashfin. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "Origins",
     "markdown": "Yahya was killed, and left by a woman called Ghaniya two sons, Muhammad and Yahya, who grew up under the protection of Yusuf ibn Tashfin. Ali ibn Yusuf gave Yahya the western part of al-Andalus and settled him in Cordoba, and to Muhammad he gave the eastern islands of Majorca, Minorca and Ibiza, in 520 AH. {cite:tarikh-ibn-khaldun-ibar}\n\nIshaq ibn Muhammad then took sole control until he died in 580 AH, leaving eight sons. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "In Ifriqiya",
     "markdown": "His son Ali ibn Muhammad moved the command to Ifriqiya. He attacked Bejaia by surprise in Safar 581 AH, took Algiers, Mazuna and Miliana, besieged the fortress, took Qafsa, and attacked Tripoli. {cite:tarikh-ibn-khaldun-ibar}\n\nThe [[polity/almohad-caliphate|Almohads]] fought them by land and sea in famous wars until their affair came to an end. {cite:tarikh-ibn-khaldun-ibar}\n\nA second source is needed: the dates, and a second source other than Ibn Khaldun."
    }
   ],
   "frontmatter": {
    "id": "polity/banu-ghaniya",
    "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"
 }
}