|This article does not cite any references or sources. (July 2011)|
The Hammadid dynasty (green), c. 1100.
|Capital||Beni Hammad (until 1090)
Béjaïa (after 1090)
|Languages||Berber, Classical Arabic, Mozarabic|
|Religion||Sunni Islam (Maliki)|
|-||1008–1028||Hammad ibn Buluggin|
|-||1121–1152||Yahya ibn Abd al-Aziz|
|Part of a series on the|
|History of Algeria|
The Hammadids were a Sanhaja Berber dynasty who ruled an area roughly corresponding to north-eastern modern Algeria for about a century and a half (1008–1152), until they were destroyed by the Almohads. Soon after coming to power, they rejected the Ismaili doctrine of the Fatimids, and returned to Maliki Sunnism, acknowledging the Abbasids as rightful Caliphs.
Their capital was at first Qalaat Beni Hammad, founded in 1007 and now a UNESCO World Heritage Site; when this was endangered by the Banu Hilal, a large Arab bedouin tribe, they moved to Béjaïa (1090).
In 1014 Hammad ibn Buluggin, a Berber who had been placed as governor of central Maghreb, declared himself independent from the Zirids, then ruling most of Maghreb from Morocco to Tunisia, and obtained the recognition from the Abbasid Caliph of Baghdad. The Zirids sent an army, but two years later a peace was signed, although the Zirid recognized the Hammadid legitimacy only in 1018.
Hammad founded a new capital in Qalaat Beni Hammad. With the Banu Hilal menace rising (spurred by the rival Fatimid caliphs of Egypt), they moved it to Béjaïa, which became one of the most prosperous cities in the medieval Mediterranean (1052).
- Hammad ibn Buluggin, 1014–1028
- al-Qaid ibn Hammad, 1028–1045
- Muhsin ibn Qaid, 1045–1046
- Buluggin ibn Muhammad ibn Hammad, 1046–1062
- an-Nasir ibn Alnas ibn Hammad, 1062–1088
- al-Mansur ibn Nasir, 1088–1104
- Badis ibn Mansur, 1104
- Abd al-Aziz ibn Mansur, 1104–1121
- Yahya ibn Abd al-Aziz, 1121–1152
See also 
Bejaia capital of the Hamadids