OneStopList

Family trees

Idrisid Dynasty Family Tree: The First Moroccan Rulers

Updated November 22, 2026

The Idrisid dynasty family tree begins with Idris Ibn Abdallah (d. 791), the founder who established the dynasty in Morocco in 788, and continues through his son Idris II (791–828), whose descendants ruled parts of Morocco for nearly two centuries. The line is a direct patrilineal succession from Idris I through several generations, with branches that later fragmented into smaller principalities.

Origins and Founding of the Dynasty

The Idrisids were the first Arab Muslim dynasty to rule Morocco, and their rise is tied to the broader Abbasid–Alid conflict of the 8th century. Idris Ibn Abdallah, a descendant of the Prophet Muhammad’s grandson Hasan, fled the Abbasid caliphate after the Battle of Fakhkh (786) and settled in the region of Volubilis (near present-day Meknes). There, Berber tribes, particularly the Awraba, recognized him as their leader. In 788, he founded the city of Fez, which would become the dynasty’s political and spiritual center. His rule was short—he was poisoned in 791—but his posthumous son, Idris II, continued the line.

The Core Line: From Idris I to Muhammad ibn Idris

The central trunk of the family tree is straightforward for the first three generations:

  • Idris Ibn Abdallah (d. 791) – founder; father of Idris II.
  • Idris II (791–828) – son of Idris I; he consolidated control over northern Morocco and made Fez the capital. He had a son named Muhammad ibn Idris.
  • Muhammad ibn Idris (d. 836) – son of Idris II; he ruled after his father and had two notable sons: Ali ibn Muhammad and Yahya ibn Muhammad.

This direct succession is well attested in historical sources and forms the backbone of the dynasty’s legitimacy.

The Branching Generations: Ali, Yahya, and Their Descendants

After Muhammad ibn Idris, the tree splits into two main branches. His son Ali ibn Muhammad (827–849) ruled as the fifth Idrisid imam, while his brother Yahya ibn Muhammad (829–864) succeeded him. Yahya ibn Muhammad is particularly important because he fathered Yahya ibn Yahya (850–874), who in turn continued the line. This period saw the dynasty’s power peak, but also the beginning of internal rivalries that would later fragment the realm.

Another branch descends from Idris II’s son Umar, giving rise to Ali ibn Umar (830–883) and later Yahya ibn Idris ibn Umar (d. 943). These figures are less prominent in the main succession but appear in genealogical records as collateral lines.

The Later Idrisids: Fragmentation and the Qasimid Branch

By the 10th century, the Idrisid realm had broken into several petty principalities. One significant branch descends from Al Qasim Guennoun (915–948), who ruled in parts of northern Morocco. His sons Abu l-Aish Ahmad (930–954) and Al-Hasan ibn Kannun (940–985) both held power at different times. Al-Hasan ibn Kannun is often considered the last effective Idrisid ruler; he fought against the Fatimids and the Umayyads of Córdoba before being killed in 985. Another figure, Al-Hajjam al-Hasan ibn Muhammad ibn al-Qassim (d. 944), also appears in this period, though his exact position in the tree is less clearly documented.

After the fall of the main dynasty, many Idrisid descendants dispersed across Morocco and beyond. Some later claimed Idrisid ancestry to gain religious prestige, but the political dynasty effectively ended in the late 10th century.

How the Family Tree Is Reconstructed

Historians rely on a mix of primary sources: chronicles like the Rawd al-Qirtas (13th century), genealogical works, and coin inscriptions. However, the Idrisid family tree is not without ambiguity. For example, the exact parentage of some later figures (like Yahya ibn Al-Qassim, 850–904) is uncertain, and different sources give varying lists of rulers. The Wikidata entry for the dynasty lists 15 members with English labels, but this is a curated subset, not an exhaustive genealogy. When studying the tree, one must distinguish between the main line of imams/rulers and the many collateral branches that produced local governors or religious leaders.

Common Misconceptions and Clarifications

A frequent error is assuming that all Idrisids were direct father-to-son rulers without interruption. In reality, succession was often contested, and brothers or cousins ruled in different cities simultaneously. Another misconception is that the dynasty ended abruptly with Al-Hasan ibn Kannun; in fact, many families in Morocco today claim Idrisid descent, and the title of ‘sharif’ (descendant of the Prophet) was often used for legitimacy. However, these later claims are genealogical, not political, and are not part of the historical ruling dynasty.

Frequently Asked Questions

Who was the founder of the Idrisid dynasty?
Idris Ibn Abdallah, a descendant of the Prophet Muhammad, founded the dynasty in 788 after fleeing the Abbasid caliphate. He established his rule in northern Morocco and was later poisoned, but his son Idris II continued his legacy.

How long did the Idrisids rule Morocco?
The main dynasty lasted from 788 to about 985, roughly two centuries. However, after the 920s, their power was fragmented, and they controlled only small regions, not the whole of Morocco.

Are there any living descendants of the Idrisids?
Many Moroccan families, particularly those claiming sharifian status, trace their ancestry to the Idrisids. However, these are genealogical claims rather than a continuous political dynasty, and they are not verified in the same way as historical records.

What role did the Idrisids play in the founding of Fez?
Idris I founded the city of Fez in 789, and Idris II later made it his capital. Under their rule, Fez became a major center of Islamic learning and trade, attracting immigrants from Andalusia and Tunisia.

Why did the Idrisid dynasty decline?
The decline was due to internal divisions, pressure from the Fatimid Caliphate to the east, and the growing influence of the Umayyads of Córdoba in the west. By the 10th century, the dynasty had splintered into small principalities that were eventually absorbed by other powers.

Related

How pages are sourced and corrected: Sources and editorial policy.