Idrisid dynasty
الدولة الإدريسية
789 CE · 172 AH – c. 985 CE · c. 375 AH
The Idrisid state of the Far Maghreb; the first Alid polity there, raised when Idris ibn Abdallah took refuge at Walila and the Berbers gave him bay'a — his son Muhammad divided the realm among his sons, Ghumara, the Rif and Nekour among their shares; the dynasty warred the Aghlabids and Fatimids until Musa ibn Abi al-Afiya drove them from Fez in 313 to the Ghumara fastness of Hajar al-Nasr, where Abu al-Aysh ibn Idris and then al-Hasan ibn Kannun led them under Cordoban da'wa (routing al-Hakam's army in 362), until Ghalib exiled them east and al-Hasan was killed returning — Idrisid kingship ended save for the later Hammudid branch at Ceuta and Tangier.
At a glance
- Era
- The Early Abbasid Caliphate · Abbasid Fragmentation · The Buyid, Fatimid and Seljuk Era
- Region
- Maghreb
- Review
- Draft Completeness 1/5 · Help complete it
In time
Overview
The Idrisid state in the far Maghrib, which Ibn Khaldun regards as the first state founded by the Alawids in the Maghrib. It began in 172 AH (789 CE), when Idris ibn Abd Allah ibn al-Hasan was given the oath of allegiance in Walila. The data date its end roughly to 375 AH (985 CE). 1
Founding and division
Idris sought refuge in Walila, and the Berbers gave him their allegiance. His son Muhammad divided the territories among his sons, and Ghumara, al-Rif and Nukur had shares of them. 1
Wars and decline
Their state fought the Aghlabids and the Fatimids. Then Musa ibn Abi al-Afiya arose and drove them out of Fez in 313 AH to the mountains of Ghumara and Hajar al-Nasr, their stronghold. 1
Their last days
Abu al-'Ish ibn Idris rose among them, and then al-Hasan ibn Kanun, on the allegiance to the Umayyad al-Nasir, and defeated the army of al-Hakam in 362 AH. Ghalib ibn Abd al-Rahman then drove them out to the east, and al-Hasan was killed on his return to the Maghrib. Their rule died out, except for the return of the Banu Hammud among them in Ceuta and Tangier. 1
Sources
- Kitab al-Ibar of Ibn Khaldun
Cite this page
islam.museum contributors. “Idrisid dynasty”. islam.museum, https://islam.museum/en/polity/idrisid-dynasty/. CC BY-SA 4.0. Accessed 2026-10-17.