Yusuf ibn Tashfin, kuma Tashafin, Teshufin, ( Larabci: يوسف بن تاشفين ناصر الدين بن تالاكاكين الصنهاجي‎, romanized: Yūsuf ibn Tāshfīn Naṣr al-Dīn ibn Tālākakīn al-Ṣanhājī  ; mulki c. 1061 - 1106), ya kasan ce kuma shi ne shugaban masarautar Berber Almoravid . Ya kafa garin Marrakesh tare da jagorantar sojojin Musulmi a yakin Sagrajas . Ibn Tashfin ya zo al-Andalus ne daga Afirka don taimaka wa Musulmai su yaki Alfonso VI, daga karshe ya sami nasara da kuma inganta tsarin Musulunci a yankin. Ya auri Zaynab an-Nafzawiyyah, wacce rahotanni suka ce ya amince da ita a siyasance. Yusuf ibn Tashfin ɗan Berber ne daga Banu Turgut, wani reshe na Lamtuna, ƙabila ce ta ƙungiyar Sanhaja. A Sanhaja aka nasaba da na da Musulmi genealogists da Yemen kabilar Himyar ta hanyar Semi-mythical da yanci pre-Islamic sarakuna, ga abin da dalilin wasu zamani da kafofin (misali, Ibn al-Arabi ) ƙara nisba al-Himyari ya Yusuf sunan da ya nuna wannan alaƙar alaƙa. Karatuttukan zamani sun ƙi wannan haɗin Berber – Yemen ɗin a matsayin abin son zuciya.