Ziri ibn Atiyya
Ziri ibn Atiyya (Berber language: Ziri n Ɛaṭiyya Ameɣraw) also known as Ziri ibn Atiyya ibn Abd Allah ibn Tabādalt ibn Muhammad ibn Khazar az-Zanātī al-Maghrāwī al-Khazarī (died 1001) was the first tribal leader of the Berber Maghrawa tribal confederacy and kingdom.
Under the protection of the Umayyad Caliph in Spain, Hisham II, and his powerful regent Al-Mansur, Ziri became king of the Zenata tribes in 978-979 and immediately set about conquering as much as he could of what is now known as northern Morocco. In 987-988 he was secure enough to be able to establish his court at Fes.
In 989, he was asked by Al-Mansur to attack Abu al-Bahār, who controlled most of what is now Algeria and Tunisia. Abu al-Bahār had deserted the Fatimid cause to align himself with the Umayyads, but then changed sides again once he had gained control of most of the Maghreb. Ziri attacked with such vigour that Abu al-Bahār fled without much of a fight, and Ziri became master of the Maghreb in the year 991.