Launch app →

Africa · Islam and the Maghreb

Idrisid Dynasty

Dynasty · 789 – 974

The Idrisid dynasty (788–974) was the first great Islamic dynasty of Morocco, ruling most of the present-day country and parts of western Algeria, and is often called the founding dynasty of the Moroccan nation. Its founder, Idris I ibn Abdallah, was an Alid — a descendant of the Prophet Muhammad through his grandson Hasan — who fled west after the Abbasids crushed the Alid rising at the Battle of Fakhkh near Mecca in 786.

Type
Dynasty
Existed
789 – 974
Shown on the map
AD 793–921, 926–935, 947–979 (3 periods)
Peak area
194k km²
Region
Africa

Overview

The Idrisid dynasty (788–974) was the first great Islamic dynasty of Morocco, ruling most of the present-day country and parts of western Algeria, and is often called the founding dynasty of the Moroccan nation. Its founder, Idris I ibn Abdallah, was an Alid — a descendant of the Prophet Muhammad through his grandson Hasan — who fled west after the Abbasids crushed the Alid rising at the Battle of Fakhkh near Mecca in 786. Reaching the far Maghreb, he was proclaimed imam in 788 at Volubilis (Walili) by the Awraba Berbers, who saw in a sharifian leader a way to legitimize their own power in a region fragmented among pagan, Christian, Jewish, and Kharijite tribes since the Berber Revolt had thrown off Umayyad rule.

History

Idris I was poisoned by an Abbasid agent in 791, but his posthumous son Idris II was proclaimed imam by the Awraba at age eleven. Idris II (r. 791–828) emancipated himself from his Berber patrons, moved the capital from Walili to Fez — founded by his father and refounded by him as al-Aliya in 809 — and welcomed two waves of Arab immigration from Córdoba (818) and Aghlabid Tunisia (824), giving Fez the Arab-Islamic character that made it Morocco's religious and intellectual capital, home to the Qarawiyyin mosque-university (founded 859). At his death the Idrisid state stretched from Tlemcen to the Sous, the leading power of Morocco.

The dynasty's weakness was division: Idris II's realm was split among his sons, and though stability held from 836 to 863, succession quarrels and Sufri Berber revolts eroded authority. In the 10th century the Idrisids became pawns in the great proxy struggle between the Fatimid Caliphate and the Umayyads of Córdoba, fought through the Zenata tribes; expelled from Fez in 927, they clung to a rump territory around Hajar an-Nasr in the Rif, alternately acknowledging each overlord, until Cordoban armies removed them in 974 and a final Fatimid-backed restoration failed in 985.

Decline and legacy

The Idrisid legacy is enormous: they Islamized and Arabized Morocco's interior, founded Fez, and established the precedent of sharifian rule — descent from the Prophet as the basis of Moroccan kingship — claimed by the Marinids, Saadis, and today's Alawi monarchy. The tombs of Idris I at Moulay Idriss and Idris II in Fez remain major pilgrimage sites, and modern Moroccan national narrative portrays them as the first Moroccan dynasty.

Common questions

What was the Idrisid Dynasty?
The Idrisid dynasty (788–974) was the first great Islamic dynasty of Morocco, ruling most of the present-day country and parts of western Algeria, and is often called the founding dynasty of the Moroccan nation. Its founder, Idris I ibn Abdallah, was an Alid — a descendant of the Prophet Muhammad through his grandson Hasan — who fled west after the Abbasids crushed the Alid rising at the Battle of Fakhkh near Mecca in 786.
When did the Idrisid Dynasty exist?
The Idrisid Dynasty existed 789 – 974. On this map it is drawn AD 793–921, 926–935, 947–979.
How large was the Idrisid Dynasty?
At its greatest extent drawn on this map, the Idrisid Dynasty covered about 194,000 km². That is the largest area the border data gives it across the years it is drawn, not necessarily its greatest extent in history.
Who ruled the Idrisid Dynasty?
Idris I was poisoned by an Abbasid agent in 791, but his posthumous son Idris II was proclaimed imam by the Awraba at age eleven.
How did the Idrisid Dynasty end?
The Idrisid legacy is enormous: they Islamized and Arabized Morocco's interior, founded Fez, and established the precedent of sharifian rule — descent from the Prophet as the basis of Moroccan kingship — claimed by the Marinids, Saadis, and today's Alawi monarchy. The tombs of Idris I at Moulay Idriss and Idris II in Fez remain major pilgrimage sites, and modern Moroccan national narrative portrays them as the first Moroccan dynasty.

Sources

Every source below was consulted while writing this entry.

This entry was written from the sources above and last updated .

This entry was researched and drafted with AI from the sources above, and has not been reviewed by a historian. How entries are made

Text available under CC BY-SA 4.0: reuse it with a credit to The World Through Time and a link to this page. Passages drawing on the Wikipedia articles listed above are also licensed CC BY-SA 4.0 by their contributors.

Border geometry for the map itself comes from Cliopatria v0.12 (Seshat Global History Databank, CC-BY-4.0).

See the Idrisid Dynasty in its world

Open the atlas at AD 857 and every neighbour, rival and successor is on screen with it — then drag the slider and watch what happens next.

Open the map at AD 857 →