When Alawites came to power, the Saadian Ahmad Al-Khadir Ibn Ali Ghaylan, who was known as Guyland, was controlling parts of Northern Morocco including the North-West territories, Loukkos River, Jbala region, and Fahs-Anjra province. The Alawites defeated Guyland when Moulay Rashid besieged the tribe of Bni Zeroual in Fahs-Anjra province in 1666. Guyland fled from Fahs-Anjra to Asilah.