Template:Family tree of the Idrisid dynasty

Idrisid dynasty

Emirs of Morocco
Caliphs of Córdoba
Emirs of Algericas
Emirs of Málaga

Abd al-Muttalib
ibn Hashim
Abu Talib ibn
Abd al-Muttalib
Abdullah ibn
Abd al-Muttalib
Muhammad
ibn Abd Allah
Ali ibn
Abi Talib
Fatima bint
Muhammad
al-Hasan
ibn Ali
al-Hasan
ibn al-Hasan
Abd Allah
ibn al-Hasan
Idris I
al-Akbar

r. 788-791
Idris II
r. 803-828
Muhammad I
r. 828-836
Umar ibn Idrisal-Qasim
ibn Idris
Dawud
r. c. 877
Ali I
r. 836-849
Yahya I
r. 849-863
Ali II
r. 866-?
Idris ibn UmarUbayd Allah
ibn Umar
Yahya III
r. ?-905
Muhammad
ibn al-Qasim
Yahya II
r. 863-866
Yahya IV
r. 905-922
Ali ibn
Ubayd Allah
al-Hasan I
al-Hajjam

r. 928–930
al-Qasim
Kanun

r. 937-949
Hammud
ibn Ali
Abu al-Aysh
Ahmad

r. 948-954
al-Hasan II
r. 954-974
Maymun
ibn Hammud
Hammud
ibn Maymun
al-Qasim
al-Ma'mun

r. 1018-1021,
1023
Ali al-Nasir
r. 1016-1018
Muhammad
al-Mahdi

r. 1035-1048
Idris I
al-Muta'ayyad

r. 1035-1039
Yahya I
al-Mu'tali

r. 1021-1023,
1025-1026
r. 1026-1035
al-Qasim
al-Wathiq

r. 1048-1054
Muhammad I
al-Mahdi

r. 1047-1053
Yahya II
al-Qa'im

r. 1039-1040
Idris II al-Ali
r. 1042-1047,
1053-1054/5
Hasan
al-Mustansir

r. 1040-1042
Idris III
al-Sami

r. 1053
Muhammad II
al-Musta'li

r. 1054/5
Abd Allah
ibn Idris
Muhammad
ibn Abd Allah
Muhammad
ibn Muhammad
al-Idrisi