The Almoravids ( Imṛabḍen, Al-Murābiṭūn) were a Berberdynasty of Morocco, who formed an empire in the 11th century that stretched over the western Maghreb and Al-Andalus. Founded by Abdallah ibn Yasin, their capital was Marrakesh, a city they founded in 1062. The dynasty originated among the Lamtuna and the Gudala, nomadic Berber tribes of the Sahara, traversing the territory between the Draa, the Niger, and the Senegal rivers.