Battle of al-Buhayra

[2] The Almoravid political leadership became hostile to what they saw as his subversive presence and he eventually fled to the Atlas Mountains, establishing himself at Tinmal, south of Marrakesh.

His influence and power grew until he eventually had the confidence to launch a military attack against the Almoravids with the help of the Berber tribes (particularly the Masmuda) allied to him.

[3] Perhaps sensing the growing threat and insecurity in the region, Ali ibn Yusuf fortified Marrakesh with its first set of ramparts in 1126.

[2] When the Almohad forces arrived before the city, the population was taken by surprise and there was chaos as the defenders were routed and as the inhabitants fled within the walls.

[6] Eventually, his death was announced and Abd al-Mu'min emerged as the leader the movement and the founder of a new dynasty that lasted until its demise.