Zawi ibn Ziri

Ziri founded the Zirid dynasty in the Maghreb with the permission of al-Mansur bi-Nasr Allah in 944 and built the city of El Achir.

A deputation seeking support from El-Hakem al-Mostancer, took Ziri's head to Cordoba, where it was put on display in the market place.

During the reign of Zawi's nephew, al-Mansur (983-995), the Zirid dynasty suffered from internal family tensions as well as a drift away from their Fatimid rulers.

Almanzor also enlisted Zenatas and other Berbers to replace, in Spain, the militia of the Caliph, umayyad troops and contingents of Arab tribes.

Supported by Sanhaja, Zenata and other Berber troops, Zawi attacked Cordoba to establish Sulayman ibn al-Hakam as their chosen caliph.

[14] Soon after settling in the area, Zawi moved his capital from Madinat Ilbira (a site near modern Atarfe) to the more defensible Granada (Gharnāṭa) nearby.

[26] Ibn Hazm, with followers of Umayyad pretender Al-Murtada (Abd al-Malik), tried to take Granada from the Zirids, in April 1018, but was heavily defeated.

[27][28][29] Zawi was welcomed back with honour by his great grand nephew, Al-Mu'izz ibn Badis, the ruler of the Zirids in the Maghreb at that time.

Al-Andalus in the year 1000
View of the Albaicín neighbourhood in Granada today, the site of the Zirid citadel during the Taifa period , with some of the Zirid city walls still standing. [ 15 ]