 Forced to resolve a Sanhaja civil war, he left control of the Moroccan conquests to his brother, Yusuf ibn Tashufin.Yusuf continued to conquer territory, and following Abu Bakr's death in 1087, Yusuf became the Almoravid leader.After their loss of Cordoba, the Hammudids had occupied Algeciras and Ceuta.