The dynasty's founder, Idris ibn Abdallah, was a descendant of the Prophet Muhammad through his grandson Hasan. After a failed uprising against the Abbasid caliphate in the east, Idris fled across North Africa to escape persecution and arrived in present-day Morocco around 786.
He settled in the region of Volubilis, the old Roman city, where local Berber tribes welcomed him. His sharifian lineage gave him enormous prestige, and in 788 the Awraba Berbers recognized him as their leader, marking the foundation of the Idrisid dynasty and Morocco's first independent Islamic state.
Idris I worked to unite the Berber tribes and to spread Islam more deeply among the population of the region. He began building the foundations of a centralized state independent of the distant Abbasid caliphate in Baghdad, an act of defiance that alarmed the eastern rulers.
According to tradition, the Abbasid caliph Harun al-Rashid had Idris I poisoned around 791 to eliminate the threat. At his death Idris left no living son, but his wife was pregnant, and the dynasty's future would rest on the child she carried.
The posthumous son, Idris II, was raised and educated until he was old enough to take power, around 803. He proved an energetic ruler who consolidated and expanded the state his father had founded, strengthening Idrisid authority across northern Morocco.
Idris II made Fez his capital and developed it into a flourishing city. He welcomed waves of Arab migrants from Andalusia and Tunisia, who settled in distinct quarters and brought skills, learning, and commerce. Under his rule Fez began its long rise as one of the great cities of the Islamic west.
The Idrisid era laid the groundwork for Fez's reputation as a center of religion and scholarship. The famous Qarawiyyin mosque was founded in 859 by Fatima al-Fihri, a woman from a family of Tunisian migrants who had settled in the city during this period.
The Qarawiyyin grew into one of the oldest continuously operating institutions of higher learning in the world. The settlement of skilled migrants and the religious prestige of the sharifian dynasty made Fez a magnet for scholars and a cornerstone of Moroccan intellectual life.
After the death of Idris II around 828, the kingdom was divided among his many sons, a common practice that weakened the central state. Over the following generations Idrisid authority fragmented into smaller principalities ruled by different branches of the family.
This division left the dynasty vulnerable to powerful neighbors. The Fatimids advancing from the east and the Umayyads of Cordoba in Spain both sought influence over Morocco, drawing the Idrisid statelets into wider regional struggles that gradually eroded their independence.
The Idrisid dynasty effectively came to an end around 974 as external powers absorbed the last of its territories. Yet its legacy proved deep and lasting. It established the model of sharifian rule, linking legitimate political authority to descent from the Prophet, a principle later embraced by the Saadians and Alaouites.
The Idrisids also founded Fez and set it on its path to greatness, and the tomb of Idris II in the city remains an important shrine and pilgrimage site. As Morocco's first Islamic state, the dynasty holds a foundational place in the nation's historical identity.
| Aspect | Detail |
|---|---|
| Period | 788-974 |
| Founder | Idris I (descendant of the Prophet) |
| Key ruler | Idris II |
| Capital | Fez |
| Notable foundation | Qarawiyyin mosque (859) |
| Significance | Morocco's first Islamic dynasty |
Key facts about the Idrisid dynasty
The Idrisid dynasty was founded by Idris I in 788. He was a descendant of the Prophet Muhammad who fled to Morocco and was recognized as leader by the Awraba Berber tribes.
The Idrisids were Morocco's first Islamic state and established the model of sharifian rule. They also founded Fez, which became a great center of religion and learning.
The Idrisids developed Fez, which Idris II made his capital. The city attracted Arab migrants and scholars and became one of the most important cities of the Islamic west.
Loved this? Useful? React below โ your feedback helps other readers.