Skip to main content
EditionEnglish edition·Édition française
History · Morocco: The Long Empire

Idris I

Every Moroccan dynasty claims a founder; only one founder claims the beginning itself.

← All history reports


Morocco 745–791

Every Moroccan dynasty claims a founder; only one founder claims the beginning itself. Idris I — Idris ibn Abdallah — was the great-great-grandson of the Prophet Muhammad who, fleeing Abbasid persecution, rode west until the map ran out and founded the first Moroccan state.

Idris was a Hasanid sharif, a descendant of the Prophet through his grandson Hasan. In 786 he survived the Abbasid massacre of the Alids at Fakhkh near Mecca — the Abbasid caliphs were systematically exterminating the Prophet's family as rivals — and fled with a single companion, Rashid, across North Africa. The journey itself is the stuff of epic: through Egypt, Ifriqiya, past Kairouan's spies, until in 788 he reached Walili — Volubilis, the old Roman city in the Moroccan plain — where the Berber chief Ishaq ibn Muhammad of the Awraba tribe received him.

What happened next was not conquest but acclamation. The Awraba and allied Berber tribes, weary of distant governors sent from Baghdad and Kairouan, proclaimed Idris imam — spiritual and political leader — in 788. For the first time, a polity centered on Morocco itself, ruled by a descendant of the Prophet, governed from Moroccan soil rather than as a province of someone else's empire. The Idrisid state was born: the first chapter of more than eight centuries of continuous Moroccan statehood.

Idris I ruled only three years, but they were decisive. He consolidated the Awraba alliance, took Tlemcen to the east — extending Moroccan authority into what is now Algeria — and began the work his son would complete. In 791 an Abbasid agent poisoned him; the caliph Harun al-Rashid, who had ordered the Alid hunts, reportedly rejoiced. But the poison failed where armies had failed: Idris's concubine Kenza was pregnant, and the posthumous son — Idris II — would found Fez and complete the state.

Idris I matters for what he represents in Moroccan memory: the moment Morocco stopped being a frontier of other empires and became a country. The sharifian principle he introduced — legitimacy through descent from the Prophet — would become the deepest well of Moroccan political legitimacy, drawn on by the Saadians and the Alaouites a thousand years later. His tomb at Moulay Idriss Zerhoun, the holy town beneath Volubilis, remains Morocco's most venerated pilgrimage site after the royal mausoleums: Moroccans still call him Moulay Idris al-Akbar, the founder, and his green-tiled mausoleum is the spiritual heart of the kingdom.

The Abbasid-Alid war that drove Idris west deserves understanding, for it explains the sharifian idea itself. The Abbasids had seized the caliphate in 750 with Alid support, then turned on the Prophet's family as rivals: the massacre at Fakhkh in 786 — where Idris's kinsmen were slaughtered after surrendering — was the final proof that no Alid was safe in the East. Idris's flight was thus not mere escape but a political statement: legitimacy would be rebuilt at the farthest edge of the Islamic world, beyond the caliph's reach. His choice of Walili was strategic as well as symbolic — a Roman city with walls, water, and a mixed population, neutral ground among the Berber tribes. The Awraba alliance was sealed by marriage and by the oldest Berber political institution, the tribal council's acclamation; Idris ruled as imam, not king — a religious title that made rebellion sacrilege. Every year, the moussem of Moulay Idriss Zerhoun draws hundreds of thousands of pilgrims to the founder's tomb, in a festival the Alaouites patronize as the kingdom's spiritual charter renewed. Twelve centuries on, Moroccans still begin their history with his ride west.

At a glance: 745–791 · Founder

Impact on civilization

Part of Morocco: The Long Empire — more than eight centuries of continuous Moroccan statehood, from the Idrisids to the reigning Alaouites.

Sources:
  • The Cambridge History of Africa, vol. 2
  • Encyclopaedia of Islam: Idris I
  • Ibn Abi Zar, Rawd al-Qirtas
  • UNESCO — Archaeological Site of Volubilis
  • Jamil Abun-Nasr, A History of the Maghrib

Across the Bureau

How did Christianity conquer Rome?How did humans tame fire?How did Islam expand so fast?AE — Country ProfileAfghanistan — Country ProfileAlbania — Country ProfileHistory of AE — TimelineHistory of Afghanistan — Timeline