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
History of Morocco with a new capital in Cairo. The Fatimids had assigned the Zirids, a Zenaga Berber clan centered in Ifriqiya, to watch their western dominions. The Zirids, however, were unable to prevent Morocco from spinning out of their control and crumbling into the hands of a collection of local Zenata Berber chieftains, most of them clients of the Caliph of Cordoba, such as the Maghrawa in the region of Fez and itinerant rivals, the Banu Ifran to the east. Morocco was at its most powerful under a series of Berber dynasties, which rose to power south of the Atlas Mountains and