Please note that the content of this book primarily consists of articles available from Wikipedia or other free sources online.Al-Muizz ibn Badis was the fourth ruler of the Zirids in Ifriqiya, reigning from 1016 to 1062. Al-Muizz ascended the throne as a minor following the death of his father Badis ibn Mansur, with his aunt acting as regent. In 1016 there was a bloody revolt in Ifriqiya in which the Fatimid residence Al-Mansuriya was completely destroyed and 20,000 Shiites were massacred. The unrest forced a ceasefire in the conflict with the Hammadids of Algeria, and their independence was finally recognised in 1018. Al-Muizz took over the government in 1022 following the overthrow of his aunt. The relationship with the Fatimids was strained, when in 1027 they supported a revolt of the Zanatas in Tripolitania which resulted in permanent loss of control of the region. His son Abdallah shortly ruled Sicily in 1038-1040, after intervening with a Zirid army in the civil war that broke out in the island.