Al-Muizz ibn Badis had ascended the throne…
1022 CE
Al-Muizz ibn Badis had ascended the throne of the Zirid Dnasty if Ifriqiyah as a minor following the death of his father Badis ibn Mansur, with his aunt acting as regent.
In 1016, there had been a bloody revolt in Ifriqiya in which the Fatimid residence Al-Mansuriya had been completely destroyed and 20,000 Shiites massacred.
The unrest had forced a ceasefire in the conflict with the Hammadids of Algeria, and their independence had been finally recognized in 1018.
Al-Muizz takes over the government in 1022 following the overthrow of his aunt.