This expansion was temporary because the following year, Abu-l-Hasan 'Ali ibn 'Uthman's army was defeated in Kairouan by a coalition of Arab tribes. Eventually, the Near Maghrib and the Middle Maghrib seceded from the Marinid state when weak rulers rose to power causing it to return to its original borders.[3] These military campaigns depleted the resources of the Marinid dynasty and led to a state of anarchy.