Born on January 13, 915, Al-Hakam II would grow up in the shadow of one of the most formidable rulers in the medieval Islamic world. His father, Abd al-Rahman III, had transformed the Emirate of Córdoba into a full Caliphate in 929, asserting its independence from the Abbasid Caliphate in Baghdad and the Fatimids in North Africa. When Abd al-Rahman III died in 961, the throne passed to his son, who took the title of Caliph and added the regnal name Al-Mustansir bi-Llah — "The One Who Seeks Victory Through God." What followed was one of the most intellectually luminous reigns in the history of medieval Spain.
Al-Hakam II ruled from 961 to 976, a period of relative internal stability for the Caliphate of Córdoba. One of his earliest and most consequential diplomatic achievements was securing peace with the Catholic kingdoms of northern Iberia. The rulers of Navarre, Castile, and León recognized the supremacy of the Caliphate, allowing Al-Hakam to redirect energy away from constant warfare and toward economic and cultural development. Under his watch, streets were widened and markets were built, creating conditions for vibrant commercial activity across Al-Andalus.
Agriculture, always the foundation of Iberian prosperity, received special attention. Al-Hakam ordered the construction of new irrigation works that allowed more land to be cultivated and fed a growing population. The city of Córdoba itself continued its transformation into one of the most sophisticated urban centers in the known world, rivaling Constantinople and Baghdad in population, infrastructure, and cultural output.
While Al-Hakam was deeply invested in governance and learning, the internal administration of the caliphate increasingly fell to his vizier Al-Mushafi. At the same time, military power was gravitating toward the general Ghālib ibn Abd al-Rahman, who commanded the caliphate's forces in North Africa. The external threats that most preoccupied Al-Hakam were the final remnants of Norman raiding activity around 970 and the persistent challenge posed by the Fatimid Caliphate and the Zirids in northern Morocco. By 974, the Fatimids had been decisively defeated in Morocco, consolidating Al-Hakam's control over the western Mediterranean approaches.
But it is as a patron of knowledge that Al-Hakam II earned his most enduring fame. He was personally and deeply learned across a wide range of disciplines, and his passion for books bordered on the obsessive. He dispatched agents to the great cities of the Islamic and Mediterranean worlds — Damascus, Baghdad, Constantinople, Cairo, Mecca, Medina, Kufa, and Basra — with instructions to acquire manuscripts on virtually every subject. His library grew to a scale that astonished contemporaries. Some accounts record that it held more than 600,000 volumes, an almost incomprehensible figure for the era, and that the catalogue of the library's holdings alone ran to 44 separate volumes.
His reputation spread so far that scholars and authors in Persia, then under Abbasid control, dedicated works to him in hopes of patronage or recognition. Al-Hakam himself was not merely a collector; he was an active reader and annotator. History was his particular passion, and he composed his own history of Al-Andalus. The breadth of his intellectual interests created an environment in which scholarship flourished under royal encouragement.
One of the most striking initiatives of his reign was a systematic translation effort. Al-Hakam sponsored the rendering of Latin and Greek texts into Arabic, and he formed a joint committee composed of Muwallad Muslims — Iberian converts to Islam — and Mozarab Catholics, Christians living under Muslim rule. The collaboration was unusual for its time and reflected a pragmatic openness to expertise regardless of religious background. Among the key intellectual figures of this translation movement were Mutazilite thinkers and Ibn Masarra, whose philosophical work added a speculative dimension to Andalusian intellectual life.
Two individuals in Al-Hakam's court stand out as emblematic of the era's achievements. The mathematician Lubna of Córdoba served as his private secretary, a remarkable appointment for a woman in tenth-century Iberia. Contemporary sources describe her as thoroughly versed in the exact sciences, with talents equal to solving the most complex problems in geometry and algebra. Also active at court was Abu al-Qasim al-Zahrawi, known to later European scholarship as Abulcasis, a physician and surgeon whose medical encyclopedia would become a foundational text in European medicine for centuries.
Al-Hakam also left a profound architectural legacy. Beginning in 961, he initiated a major expansion of the Great Mosque of Córdoba, extending the prayer hall forty-five meters further to the south. This addition introduced some of the building's most celebrated features, which survive to the present day: a richly decorated mihrab, intersecting multifoil arches that seem almost to float, and four ornate ribbed domes whose engineering was unprecedented in the Iberian Peninsula. The palace-city of Madinat al-Zahra, originally begun by Abd al-Rahman III after 936, continued to be developed and embellished under Al-Hakam's direction.
His personal life was marked by complexity. He married Subh of Córdoba, a Basque concubine who became a powerful figure at court and exerted strong influence over palace affairs. Al-Hakam reportedly gave her the masculine nickname Ja'far. They had two sons: Abd al-Rahman, born in 962, who died young in 970, and Hisham II, born in 966, who would eventually inherit the caliphate at a very young age. Some medieval sources hint, through careful euphemism, at Al-Hakam's preference for male company, suggesting one reason why producing an heir had taken until relatively late in his life; others read such passages as simply describing paternal affection.
Al-Hakam II died on October 1, 976, leaving behind a caliphate at its cultural zenith but politically vulnerable. The young Hisham II, barely ten years old, became caliph, and real power swiftly passed to the formidable chamberlain known as Almanzor. In one of the great acts of cultural vandalism in Iberian history, Almanzor ordered the destruction of the library's "ancient science" books, eliminating a vast portion of the scholarly heritage Al-Hakam had spent his lifetime assembling. What survived, and what had been copied and distributed, continued to shape the transmission of classical knowledge from the Islamic world to medieval Europe for generations.