{
 "id": "person/ziri-ibn-atiyya",
 "class": "person",
 "slug": "ziri-ibn-atiyya",
 "label": {
  "ar": "زيري بن عطية المغراوي",
  "en": "Ziri ibn Atiyya al-Maghrawi"
 },
 "summary": {
  "ar": "زيري بن عطية بن عبد الرحمن بن خزر المغراوي، مؤسس ملك فاس لبني زيري؛ كان أمير آل خزر في وقته ووارث ملكهم البدوي وهو الذي مهّد الدولة بفاس والمغرب الأقصى على طاعة المنصور بن أبي عامر، ولقيه عبد الملك المظفر بوادي منى من أحواز طنجة في شوال 388هـ فطُعن زيري ثلاثاً في نحره وانهزم أصحابه وامتنعت عليه فاس فالتجأ إلى الصحراء وأسلم جميع أعماله، ثم عاد ففتح تاهرت وتلمسان وشلف وتنس والمسيلة وأقام الدعوة فيها للمؤيد هشام وللمنصور حاجبه، وحاصر أشير قاعدة ملك صنهاجة فأعتلّ وأفرج عنها وهلك في منصرفه سنة 391هـ، وخلفه ابنه المعز.",
  "en": "Ziri ibn Atiyya ibn Abd al-Rahman ibn Khazir al-Maghrawi, founder of the Zirid (Maghrawa) kingship of Fez; chief of the house of Khazir who laid the state's foundation at Fez and the Far Maghreb in obedience to al-Mansur Ibn Abi Amir — Abd al-Malik al-Muzaffar met him at Wadi Mina by Tangier in Shawwal 388, where three spear-wounds in the neck unhorsed him, Fez shut its gates and he fled to the Sahara stripped of his realm; he returned to take Tahert, Tlemcen, Shelif, Tenis and Msila for the Amirid da'wa, besieged the Sanhaja seat of Achir, fell ill, raised the siege and died on the march home in 391, leaving the kingship to his son al-Mu'izz."
 },
 "stub": false,
 "wings": [
  "people"
 ],
 "regions": [
  "maghreb",
  "andalus-europe"
 ],
 "periods": [
  "period/buyid-seljuk-fatimid-era"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1000.9999520866273,
  "latest": 1001.9992881441465
 },
 "display": {
  "end": {
   "edtf": "1001",
   "hijri": "0391",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "هلك في منصرفه من حصار أشير سنة 391هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 },
 "data": {
  "gender": "male",
  "roles": [
   "ruler",
   "military-commander"
  ],
  "died": {
   "edtf": "1001",
   "hijri": "0391",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "هلك في منصرفه من حصار أشير سنة 391هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — آل زيري بن عطية ملوك فاس، ص1816-1819 (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-east-21"
  },
  "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": "زيري بن عطية بن عبد الرحمن بن خزر المغراوي، أمير آل خزر ومؤسس ملكهم بفاس، وهو من [[group/maghrawa|مغراوة]]. توفي سنة 391هـ في منصرفه من حصار أشير (التحويل الميلادي مشتق). {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "سيرته",
     "markdown": "يذكر ابن خلدون أنه مهّد الدولة بفاس والمغرب الأقصى على طاعة المنصور بن أبي عامر. ولقيه عبد الملك المظفر بوادي منى قرب طنجة في شوال 388هـ فطُعن في نحره وانهزم أصحابه، وامتنعت عليه فاس فالتجأ إلى الصحراء. {cite:tarikh-ibn-khaldun-ibar}\n\nثم عاد ففتح تاهرت وتلمسان وشلف وتنس والمسيلة، وأقام الدعوة فيها للمؤيد هشام وللمنصور. وحاصر أشير قاعدة ملك صنهاجة فمرض وأفرج عنها وهلك في طريق عودته، وخلفه ابنه المعز. {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "person/ziri-ibn-atiyya",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Ziri ibn Atiyya ibn Abd al-Rahman ibn Khazr al-Maghrawi, amir of the Banu Khazr and founder of their state in Fez, of the [[group/maghrawa|Maghrawa]]. He died in the year 391 AH on his return from the siege of Ashir (the Common Era conversion is derived) {cite:tarikh-ibn-khaldun-ibar}."
    },
    {
     "heading": "His career",
     "markdown": "Ibn Khaldun reports that he prepared the state in Fez and the far Maghrib in obedience to al-Mansur ibn Abi Amir. Abd al-Malik al-Muzaffar met him at the valley of Mina near Tangier in Shawwal 388 AH, and he was stabbed in the throat and his companions were routed. Fez refused him, so he took refuge in the desert {cite:tarikh-ibn-khaldun-ibar}.\n\nHe then returned and took Tahart, Tlemcen, Shalaf, Tenes and al-Masila, and kept the call in them for al-Mu'ayyad Hisham and al-Mansur. He besieged Ashir, the capital of the kingdom of the Sanhaja, and fell ill, and released it, and died on his way back. His son al-Mu'izz succeeded him {cite:tarikh-ibn-khaldun-ibar}."
    }
   ],
   "frontmatter": {
    "id": "person/ziri-ibn-atiyya",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 2,
 "contemporaries": [
  "person/abd-al-ghani-ibn-said-al-azdi",
  "person/abd-al-wahhab-ibn-ali-al-baghdadi",
  "person/abu-bakr-ibn-al-daqqaq",
  "person/abu-bakr-ibn-lal-al-hamadhani",
  "person/abu-l-ala-al-maarri",
  "person/abu-nuaym-al-asbahani-ahmad",
  "person/al-asili-abu-muhammad-abd-allah",
  "person/al-barqani-ahmad-ibn-muhammad",
  "person/al-bayakandi-ahmad-ibn-ali",
  "person/al-bayhaqi-abu-bakr-ahmad-ibn-al-husayn",
  "person/al-biruni-muhammad-ibn-ahmad",
  "person/al-halimi-abu-abd-allah-al-husayn-ibn-al-hasan"
 ],
 "connections": [
  {
   "to": "group/maghrawa",
   "type": "member_of",
   "inverse": false,
   "note": "من آل خزر أمراء مغراوة ومؤسس ملكهم بفاس."
  }
 ],
 "related": [
  "person/al-muizz-ibn-ziri",
  "group/maghrawa"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}