What is List of rulers of Morocco?
{{Infobox monarchy |royal_title = King |realm = Morocco |native_name = |coatofarms = Coat of arms of Morocco.svg |coatofarms_article = Coat of arms of Morocco |his/her = His |image = King Mohammed VI (cropped).jpg |incumbent = [[Mohammed VI of Morocco|Mohammed VI]] |incumbentsince = 23 July 1999 |heir_apparent = [[Moulay Hassan, Crown Prince of Morocco|Prince Moulay Hassan]] |first_monarch = {{ubl|[[Idriss I|Idriss ibn Abdallah]]<br />&nbsp;{{smaller|([[Idrisid dynasty]])}} |[[Al-Rashid of Morocco|Al-Rashid ibn Sharif]]<br />&nbsp;{{smaller|([[Alaouite dynasty]])}} }} |date = {{ubl|789 {{smaller|(Idrisid dynasty)}} |1666 {{smaller|(Alaouite dynasty)}} }} |residence = [[Dar al-Makhzen (Rabat)|Dar al-Makhzen]], [[Rabat]] |website = }} {{Politics of Morocco}} This is the '''list of rulers of [[Morocco]]''', since the establishment of the first Moroccan state in 789. The common and formal titles of these rulers has varied, depending on the time period. Since 1957, the title [[King]] has been used. ==Idrisid dynasty== *[[Idriss I]] (789–791) *[[Idriss II]] (791–828) *[[Muhammad ibn Idris]] (828–836) *[[Ali ibn Idris]] (836–848) *[[Yahya ibn Muhammad]] (848–864) *[[Yahya ibn Yahya]] (864–874) *[[Ali ibn Umar]] (874–883) *[[Yahya ibn Al-Qassim]] (883–904) *[[Yahya ibn Idris ibn Umar]] (904–917) The first period of [[Fatimid]] overlordship lasted from 922 to 925. *[[Hassan I al-Hajam]] (925–927) The second period of [[Fatimid]] overlordship lasted from 927 to 937. *[[Al Qasim Gannum]] (937–948) *[[Abu l-Aish Ahmad]] (948–954) *[[Al-Hasan ben Kannun]] (954–974) In 974, the Sultan [[Al-Hasan ben Kannun]] was defeated by [[Caliphate of Cordoba|Cordobese Umayyads]]. A period of [[Caliphate of Cordoba|Umayyad]] overlordship followed then. ==Almoravid dynasty== * [[Abu Bakr ibn Umar]] (c. 1060–1072) *[[Yusuf ibn Tashfin]] (1072–1106) *[[Ali ibn Yusuf]] (1106–1142) *[[Tashfin ibn Ali]] (1142–1146) Almohad uprising started in 1145 *[[Ibrahim ibn Tashfin]] (1146) *[[Ishaq ibn Ali]] (1146–1147) ==Almohad dynasty== *[[Ab