Almoravid dynasty
It was the capital for the kings of the Umayyad Caliphate, the Almoravid dynasty first and after the Almohad dynasty (from Arabic al-Muwahhidun, i.e., "the monotheists" or "the Unitarians"), from the 8th to 13th centuries.