Over the following decades, further regime changes and military interventions by powers from outside Morocco resulted in political instability and the complete disenfranchisement of the Idrisids.[1] In 1069 Fez was conquered by the Almoravids, who promoted a stricter and more orthodox version of Sunni Islam (following the Maliki maddhab) which was hostile to the cult of "saints"[2], resulting in another exodus of the sharifian families from the city.[3] As the Idrisids lost power and Fez came under the control of other rulers who were hostile to their influence, the mosque and the mausoleum were neglected and eventually abandoned, and the cult of Moulay Idris II along with it.[5][4][5] By then it was also overshadowed in prestige by the Qarawiyyin, which became the most important institution in Fez.[6] Most of the tombs of saints in the city were also ruined over this time.[5]