Hisham II
The death of al-Hakam II in 976 marked the beginning of the end of the caliphate. Before his death, al-Hakam named his only son Hisham II successor. Although the 10-year-old child was ill-equipped to be caliph, Al-Mansur Ibn Abi Aamir (top adviser to al-Hakam, also known as Almanzor), who had sworn an oath of obedience to Hisham II, pronounced him caliph. Almanzor had great influence over Subh, the mother and regent of Hisham II. Almanzor, along with Subh, isolated Hisham in Córdoba while systematically eradicating opposition to his own rule, allowing Berbers from Africa to migrate to al-Andalus to increase his base of support. While Hisham II was caliph, he was merely a figurehead. He, his son Abd al-Malik (al-Muzaffar, after his 1008 death) and his brother (Abd al-Rahman) retained the power nominally held by Caliph Hisham. However, during a raid on the Christian north a revolt tore through Córdoba and Abd al-Rahman never returned.