Muhammad II of Córdoba, born in the year nine hundred eighty, was a prominent figure in the Umayyad dynasty, serving as the fourth Caliph of Córdoba in Al-Andalus. His rise to power began in early one thousand nine, when he led a rebellion against the reigning Caliph, Hisham II, ultimately deposing and imprisoning him. This marked the beginning of a tumultuous reign characterized by oppression and violence, particularly against the Berber population, many of whom were expelled from the city.
In November of the same year, the exiled Berbers, under the leadership of Sulayman ibn al-Hakam, launched a counter-offensive to reclaim the throne. They successfully defeated Muhammad II's forces in significant battles at Qantish and Alcolea Bridge, leading to Sulayman's entry into Córdoba on the ninth of November, where he reclaimed the Caliphate. Muhammad II and his loyalists fled to Toledo, where he sought to rebuild his military strength with the help of his prime minister, Wāḍiḥ al-Ṣiqlabī.
With a reinforced army, Muhammad II returned to Córdoba, initially achieving victory against Sulayman's forces at the battle of Espiel on the twenty-second of May in one thousand ten. However, his regime remained unstable, and attempts to gain support from the Berbers were unsuccessful. Following a series of defeats in June, including battles at Marbella and Guadiaro, the political landscape shifted dramatically as Wāḍiḥ orchestrated a coup against him.
Facing imminent danger, Muhammad II attempted to escape Córdoba disguised as a woman but was captured by Wāḍiḥ. He was subsequently put on trial and executed on the twenty-third of June in one thousand ten. His death marked a significant turning point in the history of the Umayyad dynasty, with many historians later accusing him of undermining the sanctity of the Amirid Harem.