Альморавиды
After 926, the Idrisids had abandoned Fes for good and withdrew to the valleys of the Rif mountains. And a turbulent time began until the establishment of the Almoravid dynasty in the 1060s. Under Ali az-Zahir, the seventh Fatimid Khalif, Bedouin revolts erupted.