Berber Revolt
But the western Maghreb - Morocco and eastern Algeria - remained out of his reach. Since the Berber Revolt of 740, the region had descended into tribal anarchy. It was fragmented and ruled autonomously by Berber tribes. The Masmuda Berber tribes established an independent state in 744, the Berghwata confederation, with their own 'prophet' and syncretist beliefs. Ibn Habib's attempts to reimpose his rule there failed.