Zirid dynasty
Zawi ibn Ziri as-Sanhaji or Al-Mansur Zawi ibn Ziri ibn Manad as-Sanhaji (), was a chief in the Berber Sanhaja tribe. He arrived in Spain in 1000 (391) during the reign of Almanzor. He took part in the rebellion against the Caliphate of Córdoba and settled in the with followers from his Sanhaja tribe. He founded the Taifa of Granada, and founded the Zirid dynasty of Granada as its first Emir, reigning from 1013 to 1019.