Skip to main content The Idrisids: the first Moroccan state > >
Universal Encyclopedia

The Idrisids: the first Moroccan state

Morocco's first dynasty (788–974): Idris I and Idris II, founder of Fez.

The Idrisids are Year One of Morocco: the dynasty that turned a frontier of empires into a country, founded Fez, and established the sharifian principle — legitimacy through descent from the Prophet — that still underpins the Moroccan monarchy twelve centuries later.

The founder, Idris I (d. 791), was a Hasanid sharif fleeing the Abbasid massacre of the Prophet's family at Fakhkh (786). Received by the Awraba Berbers at Volubilis, he was proclaimed imam in 788 — the first ruler of a Moroccan-centered polity, governing from Moroccan soil rather than as a governor of Baghdad or Kairouan. Poisoned by an Abbasid agent in 791, he left a pregnant concubine, Kenza; the posthumous son, Idris II, was proclaimed at eleven and founded Fez around 808–809.

Idris II's Fez was the masterstroke: two cities on the Oued Fes — Madinat Fas for the Berbers, al-Aliya for the Arabs — populated by deliberate immigration, above all the Andalusi refugees expelled from Córdoba after 818 and the Kairouanis, who brought the crafts, law, and learning that made Fez the intellectual capital of the western Islamic world. The Adwat al-Andalus and Adwat al-Qarawiyyin quarters took shape; the imam built mosques, walls, and markets; the Idrisid state extended across northern Morocco to Tlemcen.

After Idris II's death in 828, the dynasty fragmented: his sons divided the realm into principalities, and direct Idrisid power waned as the Fatimids, Umayyads of Córdoba, and Zenata chiefs contested the Maghreb. The last Idrisid strongholds fell in the tenth century. But the fragmentation obscures the permanent achievement: the Idrisids had created the template — a sharifian imamate, ruling through urban institutions, from a Moroccan capital — that every subsequent dynasty would follow.

The Idrisid legacy is institutional and spiritual. Institutionally, they proved Morocco could be a state, not a province: the dynastic continuity Idrisid–Almoravid–Almohad–Marinid–Wattasid–Saadian–Alaouite, more than eight centuries unbroken, begins with Idris I's acclamation at Volubilis. Spiritually, the sharifian principle they introduced became Morocco's deepest well of legitimacy: the Saadians and Alaouites both claimed it, and the Alaouite king today is still, formally, a sharif. Moulay Idriss Zerhoun — the holy town around the founder's tomb, its green-tiled mausoleum rebuilt by the Alaouites — remains the spiritual heart of the kingdom, and Idris II's tomb in Fez anchors the old city's sacred geography.

Modern Morocco's constitution invokes the Idrisid founding as the origin of the state. Twelve centuries on, the dynasty that ruled for less than two hundred years still defines what Morocco is: a sharifian kingdom, founded by the Prophet's descendant, centered on Fez, continuous since 788.

The Idrisid afterlife in popular religion is as important as the dynasty's politics: Moulay Idriss Zerhoun — the holy town that grew around the founder's tomb — became the template of the Moroccan saint-city, and its annual moussem, with the fantasia of horsemen and the night-long dhikr, is the oldest continuously celebrated festival in the country. The Idrisid sharifs themselves multiplied into a whole social class: the chorfa idrissides, descendants recognized across Morocco, who for centuries supplied the kingdom with saints, scholars, and — crucially — the pool of sharifian legitimacy from which later dynasties drew; the Saadians and Alaouites both emerged from sharifian milieus the Idrisids had seeded. Even the Almoravids, who were not sharifs, sought Idrisid tombs' baraka before campaigns. The dynasty that ruled least directly thus ruled most deeply: not through its armies, which faded in two centuries, but through its blood, which became the currency of Moroccan legitimacy forever.

Legacy

The Idrisids (788–974) are the origin of the Moroccan state: the first Moroccan-centered polity, the founding of Fez (808), and the sharifian principle of legitimacy that the Saadian and Alaouite dynasties inherited and that still underpins the monarchy. The unbroken dynastic continuity of more than eight centuries — the core of Morocco's claim to be one of the world's oldest states — begins with Idris I. The constitution itself invokes the Idrisid founding.

Related files

The AlmoravidsThe AlmohadsThe WattasidsIdris IIdris II and the Founding of FezYusuf ibn TashfinAbd al-Mu'minYaqub al-MansurThe Battle of Zallaqa (1086)Marrakech: the Red CitySijilmasa: the City of GoldThe Trans-Saharan TradeMoroccan ArchitectureThe Giralda: Morocco's Tower in SevilleThe Andalusi Heritage of MoroccoMoulay RachidThe Moroccan–American Treaty of 1786Isly (1844) and the Tetouan WarThe Rif War and Abd el-KrimThe Tangier International ZoneIndependence and Mohammed VThe Sahara QuestionMoroccan Diplomacy: the Art of ContinuitySufism in MoroccoMoroccan Cuisine as CivilizationThe Alaouite Dynasty (extended)The Marinids (extended)The Saadian Dynasty (extended)The Battle of the Three Kings (extended)Moulay Ismail (extended)1777: Morocco Recognizes American Independence (extended)The Amazigh (extended)The Green March (extended)The Moroccan Empire: Eight Centuries of Statehood (extended)

Sources

More from the Bureau

All questionsFactbookRankings

Across the Bureau

What is the Alaouite dynasty?What was Moroccan independence in 1956?Morocco — Country ProfileHistory of Morocco — TimelineThe Alaouite dynasty: Morocco's unbroken throneThe Amazigh: North Africa's first peopleDid Morocco acquire 36 Atmos 2000 self-propelled artillery guns?Did Morocco acquire 600 FIM-92K Stinger Block I MANPADS missiles?