The
Hammadids, an offshoot of the
Zirids, were a
Berber dynasty who ruled an area roughly corresponding to 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; when this was endangered by the Banu Hilal who lead a Fatimid expedition against Zirids and Hammamids, they moved to Bejaia (in 1090.)