Yusuf ibn Tashufin, who paid homage to the caliph of Baghdad, defeated Alfonso VI of Castile and Leon at al-Zallaqah near Badajoz, temporarily securing an empire that united all of Muslim Spain except Valencia with North Africa, which they ruled from their capital at Marrakech.  
They responded to the teachings of Abdallah ibn Yasin against Shiite and Kharijite thought and drew their name from the island fortress to which ibn Yasin had retreated in religious ecstasy. Abu Bakr al-Lamtuni was among their leaders who opposed the Zanata. Yusuf ibn Tashufin, who paid homage to the caliph of Baghdad, defeated Alfonso VI of Castile and Leon at al-Zallaqah near Badajoz, temporarily securing an empire that united all of Muslim Spain except Valencia with North Africa, which they ruled from their capital at Marrakech.  FTP name this eleventh century dynasty of Islamic nomads, eventually driven out of Spain by Castile and succeeded in North Africa by the Unitarian Almohads.
They responded to the teachings of Abdallah ibn Yasin against Shiite and Kharijite thought and drew their name from the island fortress to which ibn Yasin had retreated in religious ecstasy.
Almoravids