{
 "id": "polity/hammadid-dynasty",
 "class": "polity",
 "slug": "hammadid-dynasty",
 "label": {
  "ar": "دولة آل حماد بالقلعة",
  "en": "Hammadid dynasty"
 },
 "summary": {
  "ar": "دولة آل حماد بن بلكين بالقلعة من ملوك صنهاجة؛ شعبة من دولة آل زيري عقد لها المنصور بلكيز لأخيه حماد على أشير والمسيلة فاستقل بها سنة 398هـ أيام باديس، وحارب زناتة بالمغرب الأوسط فأثخن فيهم وكان مظفراً عليهم، واختط مدينة القلعة ونقل إليها جراوة وتم بناؤها وتمصيرها على رأس المائة الرابعة ورحل إليها طلاب العلوم وأرباب الصنائع، ودامت دولتهم في القلعة وبجاية إلى أن محاها عبد المؤمن الموحدي.",
  "en": "The house of Hammad ibn Buluggin at the Qal'a, Sanhaja kings of the Middle Maghreb; a branch of the Zirid state — al-Mansur Buluggin invested his brother Hammad with Ashir and Msila, and in 398 AH he seceded in Badis's day, ground down the Zanata, founded the fortress-city of the Qal'a (settled by Jarawa and finished about 400) which drew scholars and craftsmen from afar, and the dynasty lasted at the Qal'a and Bijaya until Abd al-Mu'min the Almohad erased it."
 },
 "stub": false,
 "wings": [],
 "regions": [
  "maghreb"
 ],
 "periods": [
  "period/buyid-seljuk-fatimid-era",
  "period/crusades-ayyubid-mamluk"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1006.9987063389392,
  "latest": 1153.0003353935767
 },
 "display": {
  "start": {
   "edtf": "1007",
   "hijri": "0398",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "استقلال حماد بأشير والمسيلة سنة 398هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "end": {
   "edtf": "1152",
   "hijri": "0547~",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "انقراض الدولة بفتح عبد المؤمن بجاية؛ التاريخ تقريبي.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 },
 "data": {
  "kind": "dynasty",
  "start": {
   "edtf": "1007",
   "hijri": "0398",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "استقلال حماد بأشير والمسيلة سنة 398هـ؛ التحويل مشتق.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "end": {
   "edtf": "1152",
   "hijri": "0547~",
   "calendar": "julian",
   "precision": "year",
   "status": "tradition",
   "derived": true,
   "note": "انقراض الدولة بفتح عبد المؤمن بجاية؛ التاريخ تقريبي.",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  "external_ids": {
   "wikidata": "Q588672"
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — الخبر عن دولة آل حماد بالقلعة، ص1639-1649 (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-east-17"
  },
  "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": "دولة آل حماد بن بلكين في القلعة، من ملوك صنهاجة، وهي شعبة من دولة آل زيري. استقل حماد بأشير والمسيلة سنة 398هـ (1007م) أيام باديس. وتؤرخ البيانات نهايتها تقريباً بنحو سنة 547هـ (1152م) على يد عبد المؤمن الموحدي. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "القيام",
     "markdown": "عقد المنصور بلكين لأخيه حماد على أشير والمسيلة، فاستقل بها. وحارب زناتة في المغرب الأوسط فأثخن فيهم، وكان مظفراً عليهم. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "مدينة القلعة",
     "markdown": "اختط حماد مدينة القلعة، ونقل إليها جراوة. وتم بناؤها وتمصيرها على رأس المائة الرابعة، ورحل إليها طلاب العلوم وأرباب الصنائع. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "النهاية",
     "markdown": "دامت دولتهم في القلعة وبجاية إلى أن محاها عبد المؤمن الموحدي. {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "polity/hammadid-dynasty",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-10-16"
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "The state of the House of Hammad ibn Buluggin in al-Qal'a, of the kings of the Sanhaja. It is a branch of the Zirid state. Hammad became independent of Ashir and al-Masila in 398 AH (1007 CE) in the days of Badis. The data date its end roughly to 547 AH (1152 CE), at the hands of Abd al-Mu'min the Almohad. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "Founding",
     "markdown": "Al-Mansur Buluggin appointed his brother Hammad over Ashir and al-Masila, and he became independent there. He fought the Zanata in the central Maghrib and inflicted heavy losses on them, and he was victorious over them. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "The city of al-Qal'a",
     "markdown": "Hammad laid out the city of al-Qal'a, and moved the Jarawa there. Its building and settlement were completed at the start of the fourth century AH, and students of knowledge and craftsmen travelled to it. {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "The end",
     "markdown": "Their state lasted in al-Qal'a and Bejaia until Abd al-Mu'min the Almohad wiped it out. {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "polity/hammadid-dynasty",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   },
   "updated": "2026-10-16"
  },
  "ur": {
   "sections": [
    {
     "heading": "خلاصہ",
     "markdown": "قلعہ میں آلِ حماد بن بلکین کی ریاست، جو صنہاجہ کے بادشاہ تھے اور آلِ زیری کی ایک شاخ تھے۔ حماد نے 398 ہجری (1007 عیسوی) میں باديس کے دور میں اشیر اور المسیلہ میں خودمختاری حاصل کی۔ ڈیٹا اس ریاست کے خاتمے کی تاریخ تقریباً 547 ہجری (1152 عیسوی) بتاتا ہے، جب عبد المؤمن موحدی نے اسے ختم کیا۔ {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "قیام",
     "markdown": "منصور بلکین نے اپنے بھائی حماد کو اشیر اور المسیلہ پر مقرر کیا، تو وہ وہاں خودمختار ہو گئے۔ انہوں نے مغربِ اوسط میں زناتہ سے جنگ کی اور ان پر سخت ضرب لگائی، اور وہ ان پر فتح یاب رہے۔ {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "قلعہ شہر",
     "markdown": "حماد نے قلعہ شہر کی بنیاد رکھی اور وہاں جراوہ کو آباد کیا۔ اس کی تعمیر اور آبادکاری چوتھی صدی ہجری کے آغاز میں مکمل ہوئی، اور علم کے طالب اور ہنرمند لوگ وہاں کا رخ کرنے لگے۔ {cite:tarikh-ibn-khaldun-ibar}"
    },
    {
     "heading": "اختتام",
     "markdown": "ان کی حکومت قلعہ اور بجایہ میں قائم رہی، یہاں تک کہ عبد المؤمن موحدی نے اسے مٹا دیا۔ {cite:tarikh-ibn-khaldun-ibar}"
    }
   ],
   "frontmatter": {
    "id": "polity/hammadid-dynasty",
    "lang": "ur",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   },
   "updated": "2026-10-19"
  }
 },
 "degree": 0,
 "contemporaries": [],
 "updated": "2026-10-19",
 "connections": [],
 "related": [],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}