The entire western Maghreb (to at least…
964 CE to 1107 CE
In 1086 the Andalusian emirates, under attack from the Spanish Christian king Alfonso and the Christian reconquest of Spain, call on Ibn Tashfin and his Berber warriors to cross the Strait of Gibraltar and come to their rescue.
The Almoravids defeat the Spanish Christians and, by 1090, impose Almoravid rule and the Maliki school of Islamic law in Muslim Spain.