[3] He was the supreme governor of Al Andalus from 1126-1137 and would in these years, lead the Almoravids to some notable victories (Aceca in 1130, Fraga in 1134, Badajoz in 1134, Escalona 1137) but he also suffered some losses therein.
From 1138, the year after his departure to Morocco, the impetus was on the side of the Christians and the Muslims suffered major losses in raids and the capture of important fortresses (Oreja in 1139, Coria in 1142).
In 1145, he went to fight the Almohads, under the leadership of Abd al-Mu'min, in the Oran area.
He was besieged for several days by the Almohad forces and finally opted for escaping by sea.
He subsequently called on a fleet from Almeria, burned his military encampment and while trying to join the port by night on horseback, he fell off a cliff in the Atlas Mountains and died in March 1145.