Yusuf ibn Tashfin, also Tashafin, Teshufin, (Arabic: يوسف بن تاشفين ناصر الدين بن تالاكاكين الصنهاجي, romanized: Yūsuf ibn Tāshfīn Naṣr al-Dīn ibn Tālākakīn al-Ṣanhājī; reigned c. 1061 – 1106) was leader of the Berber Moroccan Almoravid empire. He co-founded the city of Marrakesh and led the Muslim forces in the Battle of Zallaqa/Sagrajas. Ibn Tashfin came to al-Andalus from Africa to help the Muslims fight against Alfonso VI, eventually achieving victory and promoting an Islamic system in the region. Yusuf was an effective general and administrator, as evidenced by his ability to organize and maintain the loyalty of the hardened desert warriors and the territory of Abu Bakr, as well as his ability to expand the empire, crossing the Atlas Mountains onto the plains of Morocco, reaching the Mediterranean and capturing Fez in 1075, Tangier in 1079, Tlemcen in 1080, and Ceuta in 1083, as well as Algiers, Ténès and Oran in 1082-83.