Zirid dynasty
Abu Qatada Nasir ad-Dawla Badis ibn Mansur (Badis), son of al-Mansur, became the next ruler of the Zirid dynasty. Following failed attacks against Badis, in 999 and 1000, Zawi left for Spain with his son, nephews and followers.