Al-Hakam I (771–May 21, 822) ruled as Umayyad Emir of Córdoba from 796 until his death. The son of Hisham I and a concubine named Zokhrouf, he inherited a kingdom challenged by his uncles Sulayman and Abdallah. After a 4-year struggle, Sulayman was captured and executed. Abdallah eventually received authority over Valencia and the eastern coast, along with a pension, under an agreement that reconciled the family.
Al-Hakam spent much of his reign putting down revolts in Toledo, Zaragoza, Mérida, and Córdoba. He relied on the commander ‘Amrus ibn Yusuf to restore order in Toledo; accounts of a banquet massacre known as the “Day of the Moat” reflect the fear his government sought to inspire, though the story is considered fictional. In Córdoba, a conspiracy to replace him was exposed, and 72 prominent people were executed. He strengthened his defenses and formed a personal guard that included foreign Christian soldiers.
His rule also brought him into conflict with religious authorities and city residents. Taxes imposed to fund military operations, along with his tolerance of wine sales and public vice, provoked clerical opposition. In 818, an uprising in the suburb of Shaqunda was crushed after several days of violence. Al-Hakam ordered 300 leading citizens crucified and expelled the surviving population from al-Andalus; many refugees settled in Fez or traveled to Egypt.
Known for personally leading troops and cultivating poetry and oratory, Al-Hakam also faced criticism from the religious elite for his conduct and harsh rule. He was succeeded by his son Abd al-Rahman II, one of 5 sons he had with his wife Halawah. His concubine Ajab established a foundation for lepers near Córdoba, while another concubine, Mut‘a, founded a cemetery.