Fez, Morocco financing sharifian families as a way to legitimize their (in essence secular) rule: From the 14th century onwards hundreds of families throughout Morocco claimed descent from Idris I, especially in Fez and the Rif mountains. In this regard they can be seen as the enablers of the latter sharifian dynasties of Morocco. The 1465 Moroccan revolt in 1465 overthrew the last Maranid sultan. In 1474 the Marinids were replaced by their relatives of the Wattasid dynasty, who faithfully (but for a large part unsuccessfully) continued Marinid policies. After the fall of the Marinids, the city remained the capital of Morocco
Idris I of Morocco event is considered a consolidation and the birth of the Idrisid dynasty, the fourth Muslim State in Morocco after Nekor (710 - 1019), Barghawata (744 - 1058), and Midrar (757 - 976). Idris I conquered large parts of northern Morocco, his son Idris II made Fez the capital city of the Idrisid dynasty. In 789 AD, he captured Tlemcen (modern day Algeria) which became part of the kingdom. This succession of events prompted vengeance from the Abbasid caliph Harun al-Rashid, who sent emissaries to kill him. Idris I was poisoned and died in 791. His son, Idris II, was brought