{
 "id": "person/yahya-ii-hafsid",
 "class": "person",
 "slug": "yahya-ii-hafsid",
 "label": {
  "ar": "يحيى الثاني الواثق الحفصي",
  "en": "Yahya II al-Wathiq, Hafsid"
 },
 "summary": {
  "ar": "يحيى الواثق بالله بن محمد المستنصر بالله الحفصي، من ملوك الدولة الحفصية بتونس، بويع بعد أبيه سنة 675 هـ، وثار عليه عمه إبراهيم بن يحيى فخلع نفسه سنة 678 هـ ثم قتل، وتوفي سنة 679 هـ بحسب الزركلي.",
  "en": "Yahya al-Wathiq billah ibn Muhammad al-Mustansir billah, Hafsid king at Tunis; acknowledged after his father in 675 AH, deposed himself in 678 AH when his uncle Ibrahim ibn Yahya rose against him, and was killed by that uncle; al-Zirikli dates his death to 679 AH."
 },
 "stub": false,
 "wings": [
  "people"
 ],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/crusades-ayyubid-mamluk"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1279.0015537622264,
  "latest": 1280.0008898197457
 },
 "display": {
  "end": {
   "edtf": "1279",
   "calendar": "gregorian",
   "precision": "year",
   "derived": true,
   "note": "Date-enrichment pass; source: Encyclopaedia of Islam 2nd Ed. (EI2) Card keeps 1279; al-Zirikli prints 679 AH = 1280 CE (vol. 8 p. 165), within two years; see GEMINI line."
  }
 },
 "data": {
  "roles": [
   "ruler"
  ],
  "gender": "male",
  "sources": [
   "source/bosworth-new-islamic-dynasties-1996",
   "source/alam-zirikli-dar-al-ilm-2002"
  ],
  "external_ids": {
   "wikidata": "Q1514121"
  },
  "provenance": {
   "layer": "own-research",
   "source": "al-Zirikli, al-A'lam, 15th ed. 2002, entry read in full from the local OpenITI text",
   "generated_by": "Claude Code (Lane B2 packet)",
   "model": "claude-sonnet-5-5",
   "run": "web-b2-alam-2026-11-14"
  },
  "status": {
   "review": "draft",
   "completeness": 3
  },
  "died": {
   "edtf": "1279",
   "calendar": "gregorian",
   "precision": "year",
   "derived": true,
   "note": "Date-enrichment pass; source: Encyclopaedia of Islam 2nd Ed. (EI2) Card keeps 1279; al-Zirikli prints 679 AH = 1280 CE (vol. 8 p. 165), within two years; see GEMINI line."
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "نظرة عامة",
     "markdown": "يحيى، ولقبه الواثق بالله، ابن محمد المستنصر بالله بن يحيى بن عبد الواحد ابن أبي حفص، من ملوك الدولة الحفصية بتونس. يذكر الزركلي وفاته سنة 679 هـ الموافقة 1280 م، ويضع لسنة مولده الصفر دلالة على أنها غير معلومة {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}."
    },
    {
     "heading": "سيرته",
     "markdown": "بويع له بعد وفاة أبيه سنة 675 هـ، فرفع المظالم وأفرج عن المسجونين وأفاض العطاء على الجند {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}. وثار عليه عمه إبراهيم بن يحيى فخلع نفسه سنة 678 هـ، ثم اعتقله عمه وذبحه مع بنيه {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}. ويقول الزركلي إنه عرف بعد ذلك بالمخلوع {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}."
    }
   ],
   "frontmatter": {
    "id": "person/yahya-ii-hafsid",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-11-14"
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Yahya, titled al-Wathiq billah, son of Muhammad al-Mustansir billah ibn Yahya ibn Abd al-Wahid ibn Abi Hafs, was one of the kings of the Hafsid state at Tunis. Al-Zirikli gives his death as 679 AH, 1280 CE, and prints zero for the year of birth, meaning it is not known {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}."
    },
    {
     "heading": "Life",
     "markdown": "The oath was taken to him after his father's death in 675 AH; he removed grievances and wrongs, released prisoners and was lavish in payments to the army {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}. His uncle Ibrahim ibn Yahya rose against him and he stood down in 678 AH; his uncle then had him arrested and slaughtered him together with his sons {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}. Al-Zirikli adds that he came to be known afterwards as al-Makhlu, the deposed {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}."
    }
   ],
   "frontmatter": {
    "id": "person/yahya-ii-hafsid",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Sonnet 5.5 (claude-sonnet-5-5), draft translation"
    ]
   },
   "updated": "2026-11-14"
  },
  "ur": {
   "sections": [
    {
     "heading": "جائزہ",
     "markdown": "یحییٰ، جن کا لقب الواثق باللہ تھا، محمد المستنصر باللہ بن یحییٰ بن عبدالواحد ابن ابی حفص کے بیٹے اور تونس میں حفصی سلطنت کے بادشاہوں میں سے تھے۔ زرکلی ان کی وفات 679ھ بمطابق 1280ء بتاتے ہیں اور سالِ ولادت کی جگہ صفر لکھتے ہیں، یعنی وہ معلوم نہیں {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}۔"
    },
    {
     "heading": "سیرت",
     "markdown": "اپنے والد کی وفات کے بعد 675ھ میں ان کی بیعت ہوئی؛ انہوں نے مظالم دور کیے، قیدیوں کو رہا کیا اور فوج پر عطیات کی بارش کی {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}۔ ان کے چچا ابراہیم بن یحییٰ نے ان کے خلاف بغاوت کی تو انہوں نے 678ھ میں خود کو معزول کر لیا؛ پھر چچا نے انہیں قید کیا اور ان کے بیٹوں سمیت انہیں ذبح کر دیا {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}۔ زرکلی لکھتے ہیں کہ اس کے بعد وہ \"المخلوع\" یعنی معزول کے نام سے مشہور ہوئے {cite:alam-zirikli-dar-al-ilm-2002 vol. 8 p. 165}۔"
    }
   ],
   "frontmatter": {
    "id": "person/yahya-ii-hafsid",
    "lang": "ur",
    "source_lang": "ar",
    "translators": [
     "Claude Sonnet 5.5 (claude-sonnet-5-5), draft translation"
    ]
   },
   "updated": "2026-11-14"
  }
 },
 "degree": 4,
 "contemporaries": [
  "person/abaga-ibn-hulagu",
  "person/abd-al-karim-ibn-tawus",
  "person/abd-al-rahman-ibn-qudama",
  "person/abu-al-fida",
  "person/abu-al-qasim-al-kashani",
  "person/abu-hayyan-al-gharnati",
  "person/abu-ishaq-al-ansari-al-tilimsani",
  "person/abu-yusuf-yaqub-marini",
  "person/afif-al-din-al-tilimsani",
  "person/afif-al-din-ibn-mazru",
  "person/ahmad-al-suhrawardi",
  "person/ahmad-ibn-al-nadr"
 ],
 "updated": "2026-11-14",
 "connections": [
  {
   "to": "place/tunis",
   "type": "lived_in",
   "inverse": false,
   "sources": [
    "source/alam-zirikli-dar-al-ilm-2002"
   ],
   "confidence": "medium",
   "note": "al-Zirikli, al-A'lam, vol. 8 p. 165: king of the Hafsid state at Tunis"
  },
  {
   "to": "person/al-mustansir-hafsi",
   "type": "child_of",
   "inverse": false,
   "sources": [
    "source/alam-zirikli-dar-al-ilm-2002"
   ],
   "confidence": "high",
   "note": "al-Zirikli, al-A'lam, vol. 8 p. 165: son of Muhammad al-Mustansir billah ibn Yahya"
  }
 ],
 "related": [
  "event/eighth-crusade-tunis-669",
  "event/ibn-al-abbar-killed-tunis-658",
  "person/abu-zakariya-al-hafsi",
  "building/al-zaytuna-mosque",
  "event/capture-of-tunis-1329",
  "event/capture-of-tunis-1357",
  "event/capture-of-tunis-1569",
  "event/capture-of-tunis-1573"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}