HistoryData
Historical EmpireFez

Idrisid
dynasty

Active Reign Period
788974AD
Calculated Duration
186 Years

The Idrisid dynasty established the first Arab Muslim state in Morocco, founding Fez and accelerating the Islamization and Arabization of the western Maghreb.

Key Facts

Duration
788–974 AD
Founder
Idris I, descendant of Prophet Muhammad via Hasan
Capital
Fez (founded by Idris I and Idris II)
Territory
Most of present-day Morocco and parts of western Algeria
Stable rule period
836–863 AD

Imperial Zenith Metrics

Capital
Fez
Duration
186yrs
Historical Capitals
Volubilis788 – c. 789Fezc. 789 – 974Hajar an-Nasr927 – 974

Historical Trajectory

Phase I: Rise

Idris I fled the Abbasid Caliphate after the Battle of Fakhkh and arrived in Morocco in 788, establishing himself at Volubilis with support from local Berber tribes. Recognized as a legitimate Alid leader, he built a power base across the region. His son Idris II consolidated control and co-founded the city of Fez, which became the administrative and cultural center of an expanding Idrisid state covering most of modern Morocco.

Phase II: Zenith

At their height, the Idrisids governed most of present-day Morocco and portions of western Algeria from Fez, which grew into a significant urban and Islamic scholarly center. Their rule fostered Arab immigration, Arabization of major cities, and the early spread of Islam among Berber populations. Fez attracted merchants, scholars, and migrants, laying the foundations for Morocco's enduring identity as an Arab-Islamic state.

Phase III: Decline

After Idris II's death, the realm was partitioned among rival sons, triggering prolonged internal conflict. By the late 9th century, Zenata Berber tribes acting as proxies for the Fatimid Caliphate and the Umayyad Caliphate of Córdoba steadily eroded Idrisid authority. Expelled from Fez in 927, the dynasty retreated to Hajar an-Nasr in northern Morocco before being definitively defeated in 974. A brief restoration attempt in 985 also failed.

Notable Imperial Reigns

Selected rulers mapping the empire’s trajectory