 He united all of the Muslim dominions in the Iberian Peninsula (modern Portugal and Spain) to the Maghreb (c. 1090), after being called to the Al-Andalus by the Emir of Seville.Alfonso VI was defeated on 23 October 1086, at the battle of Sagrajas, at the hands of Yusuf ibn Tashfin, and Abbad III al-Mu'tamid.Yusuf bin Tashfin is the founder of the famous Moroccan city Marrakech.