هشام المؤيد بالله
Up until the death of Al-Hakam II in the year 976, the Caliphate of Córdoba was a powerful state, both respected and feared by the Christian kingdoms to the north. After his death, his son, Hisham II al-Hakam was still a child. As a result, the vizier, Almanzor was able to easily manoeuver and seize power, usurping the Umayyad Caliphate claim and turning the Caliph into a mere puppet. The strength of the Caliphate lay in the unity of different Muslim groups, following civil wars that had drained the Emirate. To be assured in the conservation of his power, Almanzor favored the Berbers over the other groups. Similar accommodation in the pecking order was transferred to Almanzor's son Abd al-Malik al-Muzaffar when he succeeded his father to the throne. To exacerbate the situation, government security was further undermined by various plots as rival groups vied for power. Abd al-Malik died in 1008, leaving his brother, Abd al-Rahman Sanchuelo in power. Sanchuelo was able to convince Hisham II to name him the rightful heir to the Caliphate. This marked the last straw for the remaining Umayyad members who proceeded to launch a full scale coup d'état and revolt against the state.