Yusuf ibn Tashfin
In 1086, the Almoravid invasion of the Iberian Peninsula, through and around Gibraltar, began. The Almoravids, a Berber dynasty from North Africa, led by Yusuf ibn Tashfin, were asked to help defend the divided Moors from Alfonso. The Almoravid army, joined by that of several Taifas, including Badajoz, Málaga, Granada, Tortosa and Seville, defeated a combined army of León, Aragón and Castile at the Battle of Sagrajas.