{
 "id": "polity/banu-yala-tlemcen",
 "class": "polity",
 "slug": "banu-yala-tlemcen",
 "label": {
  "ar": "بنو يعلى ملوك تلمسان",
  "en": "Banu Ya'la, kings of Tlemcen"
 },
 "summary": {
  "ar": "إمارة بني يعلى من آل خزر من مغراوة بتلمسان؛ من ولد يعلى بن الخير بن محمد بن خزر، جاوروا بني زيري بفاس وبني يفرن اليفرني بسلا وتادلا، وكانت لأمرائهم حروب ووقائع مع زغبة من العرب ومع بني حماد ومصامدة وبرغواطة، وآخر أمرائهم العباس بن بختي صاحب تلمسان الذي أغزى يوسف بن تاشفين إليه مزدلي بن تبلكان في عساكر لمتونة فدوّخوا المغرب الأوسط وقتلوا يعلى ابنه ثم قتل العباس نفسه في فتح تلمسان سنة 475هـ، فانقرضت دولتهم وصارت تلمسان ثغراً لملك المرابطين.",
  "en": "The emirate of Banu Ya'la of the Khazirid Maghrawa at Tlemcen; descendants of Ya'la ibn al-Khayr ibn Muhammad ibn Khazir, neighbours of the Fez Zirids and the Salé Yafranids, whose amirs warred the Zughba Arabs, the Hammadids, the Musamida and Barghawata — their last amir al-Abbas ibn Bakhti, against whom Yusuf ibn Tashfin sent Mazdali ibn Tablakan's Lamtuna host that swept the Middle Maghreb, killed his son Ya'la and then al-Abbas himself when Tlemcen fell in 475, ending the dynasty and making Tlemcen an Almoravid march."
 },
 "stub": false,
 "wings": [],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/buyid-seljuk-fatimid-era"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1082.0009308883823,
  "latest": 1083.0002669459013
 },
 "display": {
  "end": {
   "edtf": "1082",
   "hijri": "0475",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "قتل العباس بن بختي وفتح تلمسان سنة 475هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 },
 "data": {
  "kind": "emirate",
  "end": {
   "edtf": "1082",
   "hijri": "0475",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "قتل العباس بن بختي وفتح تلمسان سنة 475هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — الخبر عن بني يعلى ملوك تلمسان، ص1825-1826 (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-east-22"
  },
  "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": "إمارة بني يعلى في تلمسان، من آل خزر من مغراوة، من ولد يعلى بن الخير بن محمد بن خزر. انتهت دولتهم بفتح المرابطين تلمسان سنة 475هـ (1082م). {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "الجوار والحروب",
     "markdown": "جاور بنو يعلى بني زيري في فاس، وبني يفرن اليفرني في سلا وتادلا. وكانت لأمرائهم حروب ووقائع مع زغبة من العرب، ومع بني حماد والمصامدة وبرغواطة. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "نهاية الدولة",
     "markdown": "آخر أمرائهم العباس بن بختي صاحب تلمسان. أرسل يوسف بن تاشفين إليه مزدلي بن تبلكان في عساكر لمتونة، فدوّخوا المغرب الأوسط وقتلوا ابنه يعلى. ثم قُتل العباس في فتح تلمسان سنة 475هـ، فانقرضت دولتهم وصارت تلمسان ثغراً لملك المرابطين. {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "polity/banu-yala-tlemcen",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "The emirate of Banu Ya'la in Tlemcen, of the Al Khazar of the Maghrawa, descended from Ya'la ibn al-Khayr ibn Muhammad ibn Khazar. Their state ended with the Almoravid conquest of Tlemcen in 475 AH (1082 CE). {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "Neighbours and wars",
     "markdown": "The Banu Ya'la were neighbours of the Zirids in Fez, and of the Banu Yifran al-Yifrani in Sala and Tadla. Their emirs had wars and battles with the Zughba of the Arabs, and with the Banu Hammad, the Masmuda and Barghawata. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "The end of the state",
     "markdown": "Their last emir was al-Abbas ibn Bakhti, lord of Tlemcen. Yusuf ibn Tashfin sent Mazdali ibn Tiblakan to him with the armies of Lamtuna, and they subdued the central Maghrib and killed his son Ya'la. Al-Abbas was then killed in the conquest of Tlemcen in 475 AH, their state died out, and Tlemcen became a frontier town for the Almoravid king. {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "polity/banu-yala-tlemcen",
    "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"
 }
}