{
 "id": "person/abu-zakariya-al-hafsi",
 "class": "person",
 "slug": "abu-zakariya-al-hafsi",
 "label": {
  "ar": "أبو زكريا الحفصي",
  "en": "Abu Zakariya al-Hafsi"
 },
 "summary": {
  "ar": "أبو زكريا يحيى بن أبي محمد بن الشيخ أبي حفص الهنتاتي، مؤسس الدولة الحفصية بإفريقية؛ أمير موحدي مخلص حتى خلع المأمون دعوة المهدي، فخلع طاعته بإفريقية سنة 627هـ واستبد بها، وجدّد دولة آل حفص التي ملكت تونس نحو ثلاثة قرون.",
  "en": "Abu Zakariya Yahya ibn Abi Muhammad, grandson of the shaykh Abu Hafs al-Hintati, founder of the Hafsid state in Ifriqiya; a loyal Almohad amir until al-Ma'mun abjured the Mahdi's creed, whereupon he threw off his allegiance in 627 AH and seized Ifriqiya, founding the Hafsid house that ruled Tunis some three centuries."
 },
 "stub": false,
 "wings": [
  "people"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/mongol-post-mongol"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1249.5827429721348,
  "latest": 1249.66761808932
 },
 "display": {
  "end": {
   "edtf": "1249-08",
   "hijri": "0647-06-07",
   "calendar": "julian",
   "precision": "day",
   "status": "tradition",
   "derived": true,
   "note": "هلك بظاهر بونة لسبع بقين من جمادى الآخرة سنة 647هـ لاثنتين وعشرين سنة من ولايته، ودفن بجامع بونة ثم نقل شلوه إلى قسطنطينة سنة 666هـ بين يدي حصار النصارى تونس؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 },
 "data": {
  "gender": "male",
  "roles": [
   "ruler"
  ],
  "traditions": [
   "sunni"
  ],
  "died": {
   "edtf": "1249-08",
   "hijri": "0647-06-07",
   "calendar": "julian",
   "precision": "day",
   "status": "tradition",
   "derived": true,
   "note": "هلك بظاهر بونة لسبع بقين من جمادى الآخرة سنة 647هـ لاثنتين وعشرين سنة من ولايته، ودفن بجامع بونة ثم نقل شلوه إلى قسطنطينة سنة 666هـ بين يدي حصار النصارى تونس؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "external_ids": {
   "wikidata": "Q29480"
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — دولة المأمون بن المنصور وأخبار الحفصيين، ص1684 (المجلد السادس، طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-maghreb-2"
  },
  "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/hafsid-dynasty|الدولة الحفصية]] بإفريقية. كان أميراً موحدياً حتى خلع المأمون دعوة المهدي، فخلع طاعته بإفريقية سنة 627هـ واستبد بها. وجدّد بذلك دولة آل حفص التي ملكت تونس نحو ثلاثة قرون. {cite:tarikh-ibn-khaldun-ibar p.1684}"
    },
    {
     "heading": "وفاته",
     "markdown": "يذكر ابن خلدون أنه هلك بظاهر بونة لسبع بقين من جمادى الآخرة سنة 647هـ، لاثنتين وعشرين سنة من ولايته. ودُفن بجامع بونة، ثم نُقل إلى قسطنطينة سنة 666هـ والنصارى يحاصرون تونس. وتحويل التاريخ إلى الميلادي (نحو آب/أغسطس 1249م) مشتق وليس من نص المصدر. {cite:tarikh-ibn-khaldun-ibar p.1684}\n\nلا يوجد في بيانات المتحف مصدر ثانٍ لهذه التواريخ، وهي تحتاج إلى مصدر إضافي."
    }
   ],
   "frontmatter": {
    "id": "person/abu-zakariya-al-hafsi",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-10-16"
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Abu Zakariya Yahya ibn Abi Muhammad, grandson of Shaykh Abu Hafs al-Hintati, and founder of the [[polity/hafsid-dynasty|Hafsid state]] in Ifriqiya. He was an Almohad amir until al-Ma'mun abandoned the call of al-Mahdi, and in 627 AH he withdrew his obedience in Ifriqiya and ruled it alone. He thus renewed the rule of the house of Hafs, which held Tunis for about three centuries. {cite:tarikh-ibn-khaldun-ibar p.1684}"
    },
    {
     "heading": "His death",
     "markdown": "Ibn Khaldun says he died outside Bona on the seventh day before the end of Jumada al-Akhira 647 AH, after twenty-two years in power. He was buried in the mosque of Bona, and then moved to Constantine in 666 AH while the Christians were besieging Tunis. The Gregorian conversion (around August 1249 CE) is derived and not from the source. {cite:tarikh-ibn-khaldun-ibar p.1684}\n\nThe museum's data have no second source for these dates, which need an additional source."
    }
   ],
   "frontmatter": {
    "id": "person/abu-zakariya-al-hafsi",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   },
   "updated": "2026-10-16"
  },
  "ur": {
   "sections": [
    {
     "heading": "خلاصہ",
     "markdown": "ابو زکریا یحییٰ بن ابی محمد شیخ ابو حفص الہنتاتی کے پوتے ہیں، اور افریقیہ میں [[polity/hafsid-dynasty|حفصی سلطنت]] کے بانی۔ وہ موحدین کے امیر تھے یہاں تک کہ مامون نے مہدی کی دعوت کو ترک کیا، تو انھوں نے 627ھ میں افریقیہ میں اس کی اطاعت چھوڑ دی اور خودمختار ہو گئے۔ اس طرح انھوں نے آلِ حفص کی سلطنت کو نئی زندگی دی، جس نے تقریباً تین صدیوں تک تیونس پر حکومت کی۔ {cite:tarikh-ibn-khaldun-ibar p.1684}"
    },
    {
     "heading": "وفات",
     "markdown": "ابن خلدون بیان کرتے ہیں کہ وہ بونہ کے باہر جمادی الآخرہ کی سترہ تاریخ کو 647ھ میں فوت ہوئے، جب ان کی حکمرانی کو بائیس سال ہو چکے تھے۔ انھیں بونہ کی جامع مسجد میں دفن کیا گیا، پھر 666ھ میں قسطنطینہ منتقل کیا گیا، جب عیسائی تیونس کا محاصرہ کیے ہوئے تھے۔ عیسوی تاریخ (تقریباً اگست 1249ء) ہجری سے اخذ کی گئی ہے اور ماخذ کے متن میں نہیں ہے۔ {cite:tarikh-ibn-khaldun-ibar p.1684}\n\nمیوزیم کے ڈیٹا میں ان تاریخوں کا کوئی دوسرا ماخذ نہیں ہے، اس لیے یہ اضافی ماخذ کی محتاج ہیں۔"
    }
   ],
   "frontmatter": {
    "id": "person/abu-zakariya-al-hafsi",
    "lang": "ur",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   },
   "updated": "2026-10-19"
  }
 },
 "degree": 12,
 "contemporaries": [
  "person/abagha-khan",
  "person/abu-al-abbas-al-qurti",
  "person/abu-al-hajjaj-al-biyasi",
  "person/abu-bakr-ibn-qawam",
  "person/abu-shama-al-dimashqi",
  "person/afif-al-din-al-tilimsani",
  "person/afif-al-din-ibn-mazru",
  "person/ahmad-al-badawi",
  "person/ahmad-ibn-muhsin",
  "person/ahmad-ibn-yusuf-al-tifashi",
  "person/al-abraqawhi-ahmad",
  "person/al-astarabadhi-al-hasan"
 ],
 "updated": "2026-10-19",
 "connections": [
  {
   "to": "person/abu-ishaq-hafsi",
   "type": "parent_of",
   "inverse": true,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "polity/hafsid-dynasty",
   "type": "founder_of",
   "inverse": false,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "polity/hafsid-dynasty",
   "type": "ruler_of",
   "inverse": false,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "person/al-mustansir-hafsi",
   "type": "parent_of",
   "inverse": true,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "event/hafsid-independence-627",
   "type": "participated_in",
   "inverse": false,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "event/muslim-sicily-collapse-647",
   "type": "participated_in",
   "inverse": false,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 ],
 "related": [
  "polity/hafsid-dynasty",
  "person/al-wathiq-hafsi",
  "person/abu-ishaq-hafsi",
  "person/al-mustansir-hafsi",
  "event/eighth-crusade-tunis-669",
  "event/mecca-hafsid-baya-648",
  "person/abu-zakariya-bejaia",
  "person/al-hasan-ibn-muhammad-hafsi"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}