In Algeria: Banu Ifran dynasty (830–1040) Zirid dynasty (947–1090) Hammadid dynasty (1014–1152) Almohad caliphate (1145–1244) In Morocco: Idrisid dynasty (789–974) Almoravid dynasty (1061–1145) Almohad dynasty (1145–1244) Marinid dynasty (1244–1465) Wattasid dynasty (1471–1554) Saadi dynasty (1554-1666) Alaouite dynasty (1666–present) In Tunisia: Fatimid dynasty (Tunisian period) (910–969) Zirid dynasty (973–1148) Hafsid dynasty (1229–1574) In Egypt: Fatimid dynasty (Egyptian period) (969–1171) Ayyubid dynasty (1171–1254) Mamluk dynasty (1250–1517) In Sudan: The Sennar Sultanate (1502–1821) was a sultanate in the north of Sudan. It was named Funj after the ethnic group of its dynasty or Sinnar (or Sennar) after its capital, which ruled a substantial area of the Sudan region.