# Yahya ibn Abd al-Aziz

**Yahya ibn Abd al-Aziz** (يحيى بن عبد العزيز) was the last ruler of the [Hammadid dynasty](https://www.edgepedia.org/hammadid-dynasty), a Sanhaja Berber house that governed most of eastern present-day Algeria, reigning from AH 515 (1121–1122) until the Almohad conquest of his state in AH 547 (1152–1153).<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[2](http://www.hukam.net/family.php?fam=45)</sup> He succeeded his father Abd al-Aziz, and after more than three decades on the throne he surrendered to the Almohad caliph [Abd al-Mu'min](https://www.edgepedia.org/abd-al-mumin) at Constantine, spent his last years in exile in Morocco, and died at Sale.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup>

| Key fact | Detail |
|---|---|
| Dynasty | Hammadid, a Berber (Sanhaja) dynasty of the central Maghreb<sup>[2](http://www.hukam.net/family.php?fam=45)</sup> |
| Reign | AH 515–547 (1121–1152), as the dynasty's last ruler<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> |
| Predecessor | His father, Abd al-Aziz, who died in AH 515<sup>[4](https://read.shamela.ws/book/12320/3649)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> |
| Successor | None; the state was absorbed by the Almohad empire in 1152<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[2](http://www.hukam.net/family.php?fam=45)</sup> |
| Conqueror | The Almohad caliph Abd al-Mu'min<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> |
| Death | At Sale, in AH 557 (1161–1162) by one account, AH 558 (1162–1163) by another<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> |

## Accession and family

Yahya took power on the death of his father Abd al-Aziz in AH 515, corresponding to 1121–1122.<sup>[4](https://read.shamela.ws/book/12320/3649)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> Its seat had moved from the Qal'a of the Beni Hammad to the coastal city of Bejaia, also called al-Nasriyya, after 1068 under pressure from Hilali tribes and the Athbaj.<sup>[5](https://www.noonpost.com/22131/)</sup><sup> • </sup><sup>[6](https://www.alfusaic.net/civilizations-101/hammadid)</sup>

## Reign: policies, administration, and wars

Yahya's reign of roughly three decades coincided with the decline the chronicler [Ibn Khaldun](https://www.edgepedia.org/ibn-khaldun) describes: the dynasty weakened while the Sanhaja tribes faded.<sup>[4](https://read.shamela.ws/book/12320/3649)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup>

Wars pressed on the state from two directions. From the east, Norman pressure on Ifriqiya increased from AH 537 (1142–1143), with attacks reaching Jijel, and the Normans eventually seized al-Mahdiya, expelling al-Hasan, the last Zirid ruler, who then lived in Algeria under Yahya's watch because Yahya feared he would contact the Almohad leader Abd al-Mu'min.<sup>[1](http://arab-ency.com.sy/details/5742)</sup> From the west came the decisive threat: in AH 547 (1152–1153), the year the Hammadid state fell, Abd al-Mu'min took Tlemcen, Miliana, Algiers, and then Bejaia, and Yahya fled to Bona (Annaba) and then to [Constantine](https://www.edgepedia.org/constantine).<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[2](http://www.hukam.net/family.php?fam=45)</sup> The Almohad army marched on Constantine in Jumada I AH 547 (August 1152); a bloody battle followed, and Yahya surrendered.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup>

## Political influence

Yahya's reign marks the end of Hammadid sovereignty rather than a new institutional departure. The Hammadids had held most of eastern [Algeria](https://www.edgepedia.org/algeria) until 1152, when their rule ended, and their territory passed to the Almohad empire, one of the largest Islamic political formations of its time, ruled by Abd al-Mu'min's Mu'minid dynasty.<sup>[7](http://numismatics.org/digitallibrary/ark:/53695/nnan106529)</sup><sup> • </sup><sup>[8](https://oxfordre.com/africanhistory/display/10.1093/acrefore/9780190277734.001.0001/acrefore-9780190277734-e-1285?d=%2F10.1093%2Facrefore%2F9780190277734.001.0001%2Facrefore-9780190277734-e-1285&p=emailASLige7JSGz7M)</sup> The dynasty had earlier rejected Ismailism and restored the Sunni Maliki school, recognizing Abbasid caliphal rights.<sup>[5](https://www.noonpost.com/22131/)</sup> With Yahya's surrender the Hammadid line of rulers ended; no successor reigned after him.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[2](http://www.hukam.net/family.php?fam=45)</sup>

## End of the reign and succession

After the surrender at Constantine, Abd al-Mu'min treated Yahya generously: he was taken to Bejaia, then moved to [Marrakesh](https://www.edgepedia.org/marrakesh) with a generous stipend that let him devote his time to hunting, his favorite pastime.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> He lived out his years at Sale, in one account like a king without a kingdom, dying in one of Abd al-Mu'min's palaces there.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> The year of his death is given differently by the main accounts: AH 557 (1161–1162) in one, AH 558 (1162–1163) in another.<sup>[1](http://arab-ency.com.sy/details/5742)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup>

## Historians' assessment

Ibn Khaldun's verdict on Yahya is severe: a long reign but a weak one, a ruler "dominated by women and fond of hunting" at the moment the dynasty declined.<sup>[4](https://read.shamela.ws/book/12320/3649)</sup><sup> • </sup><sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> [Ibn al-Khatib](https://www.edgepedia.org/ibn-al-khatib), by contrast, describes him as virtuous and forbearing, eloquent in speech and pen, and devoted to hunting.<sup>[3](https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8)</sup> Modern accounts place the fall of the state less on one man's character than on accumulated pressures: internal conflicts among Berber tribes and external threats from east, west, and north hastened the Hammadids' submission to the Almohads.<sup>[5](https://www.noonpost.com/22131/)</sup>

## References

1. الموسوعة العربية: بني زيري / بني حماد – http://arab-ency.com.sy/details/5742
2. الحماديون/بنو حماد/آل حماد – http://www.hukam.net/family.php?fam=45
3. الدولة الحمادية ملوك المغرب الأوسط – قصة الإسلام – https://islamstory.com/ar/artical/24054/%D8%A7%D9%84%D8%AF%D9%88%D9%84%D8%A9-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D8%AF%D9%8A%D8%A9-%D8%A8%D9%86%D9%88-%D8%AD%D9%85%D8%A7%D8%AF-%D9%85%D9%84%D9%88%D9%83-%D8%A7%D9%84%D9%85%D8%BA%D8%B1%D8%A8
4. تاريخ ابن خلدون – الخبر عن دولة آل حماد بالقلعة – https://read.shamela.ws/book/12320/3649
5. الدولة الحمادية .. كيف حكموا الجزائر ؟ – https://www.noonpost.com/22131/
6. Hammadid – Al Fusaic – https://www.alfusaic.net/civilizations-101/hammadid
7. Numismatic History of Late Medieval North Africa – http://numismatics.org/digitallibrary/ark:/53695/nnan106529
8. The Almohad Empire, c. 1120–1269 – Oxford Research Encyclopedia of African History – https://oxfordre.com/africanhistory/display/10.1093/acrefore/9780190277734.001.0001/acrefore-9780190277734-e-1285

---
*Topic: Encyclopedia › Society and history › History and archaeology › Other history › Middle East and North Africa › Maghreb (788 to 1800) › Dynasties and rulers › Early dynasties (788–1147)*

*Initially written Sep 24, 2026 · Edited: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
