Al-Hakam II, also known asAbū al-ʿĀṣ al-Mustanṣir bi-Llāh al-Hakam b. ʿAbd al-Raḥmān (أَبُو الْعَاصٍ الْمُسْتَنْصِرِ بِاللهِ الْحَكْمِ بْن عَبْدِ الرَّحْمَنِ; 13 January 915 – 1 October 976), was theCaliph of Córdoba. He was the secondUmayyadCaliph of Córdoba inAl-Andalus, and son ofAbd-al-Rahman III and Murjan. He ruled from 961 to 976.
Al-Hakam II succeeded to the Caliphate after the death of his father Abd-ar-Rahman III in 961. He secured peace with theCatholic kingdoms of northern Iberia, and made use of the stability to develop agriculture through the construction of irrigation works. Economic development was also encouraged through the widening of streets and the building of markets.
Whilst the internal administration was left increasingly tovizir Al-Mushafi,[2] generalGhālib ibn ʿAbd al-Raḥmān was gradually gaining influence as leader of the army in North Africa. He was chiefly preoccupied with repulsing the lastNorman attacks (c. 970),[3][4] and with the struggle against theZirids and theFatimids in northernMorocco. The Fatimids were defeated in Morocco in 974, while Al-Hakam II was able to maintain the supremacy of the caliphate over the Catholic states ofNavarre,Castile andLeón.
Hakam himself was very well versed in numerous sciences. He had books purchased fromDamascus,Baghdad,Constantinople,Cairo,Mecca,Medina,Kufa, andBasra. His status as a patron of knowledge brought him fame across the Muslim world to the point that even books written inPersia, which was under ArabAbbasid control, were dedicated to him. During his reign, a massive translation effort was undertaken, and many books were translated fromLatin andGreek intoArabic. He formed a joint committee ofMuwallad Muslims andMozarab Catholics for this task.[5]
His personal library was of enormous proportions. Some accounts speak of him having more than 600,000 books. The catalogue of library books itself was claimed to be 44 volumes long.[5] Of special importance to Al-Hakam was history, and he himself wrote a history of al-Andalus.[5] Following his death,HajibAlmanzor had all "ancient science" books destroyed.[6]
The mathematicianLubna of Córdoba was employed as Al-Hakam's private secretary. She was said to be "thoroughly versed in the exact sciences; her talents were equal to the solution of the most complex geometrical and algebraic problems".[7]
Starting in 961, al-Hakam II initiated a major expansion of theGreat Mosque of Córdoba. The mosque's prayer hall was extended 45 meters further south. This expansion added several of the building's most architecturally significant features that have survived to the present day, including a richly decoratedmihrab, intersectingmultifoil arches, and four ornateribbed domes.[9][10][11]
The palace-city ofMadinat al-Zahra, first built by his father Abd ar-Rahman III after 936, continued to be built up and renovated under al-Hakam II.[12]
Al-Hakam marriedSubh of Cordoba, aBasqueconcubine. She held sway and strong influence over the court. It is said that al-Hakam nicknamed her with the masculine name Ja'far.[13] They had two sons, the first is Abd al-Rahman (962–970),[1] who died young, and the second isHisham II (966–1013).[14]
According toÉ. Lévi-Provençal, the phraseḤubb al-walad, as found inal-Maqqari'sNafḥ al-ṭayyib,[15] is a reference to al-Hakam'shomosexuality or "preference for boys".[16][17] However, several historians render it as "paternal love", referring instead to him choosing his young son as a successor.[18][19][20] The fact that he did not produce a suitable heir before the age of 46 has been ascribed either to him being more attracted to men,[21]—although this is only reported euphemistically in the sources,[17]—or because he was too absorbed with his books to care for sensual pleasures.[13] Subh may have dressed as aghulam or a young man to make herself more attractive to al-Hakam (adopting a short haircut and wearing trousers), although it is also possible she did this in order to gain better access to the male-dominated royal court.[22]
Al-Hakam II suffered astroke near the end of his life that curtailed his activities and may explain why he was unable to properly prepare his son for leadership.[23] Modern scholars have speculated that, based on the historical descriptions of his death, it was anothercerebrovascular stroke, possibly brought on by the cold weather, that claimed his life in October 976.[24] He was succeeded by his son,Hisham II al-Mu'ayad, who was 11 years old at the time and during his minority under regency by General Ghalib al-Nasiri, al-Mushafi, chief administrator of the late caliph, andSubh, his mother, assisted by her secretaryAlmanzor.[25]
^Bariani, Laura (2003).Almanzor (in Spanish). Editorial NEREA. p. 66.ISBN9788489569850. Archived fromthe original on April 15, 2023. RetrievedAugust 11, 2025.
^Lévi-Provençal, Evariste (1957).España musulmana hasta la caída del Califato de Córdoba (711-1031 de J.C.). Espasa-Calpe. pp. 447–8.Hay, indudablemente, algo de verdad en la alusién que un cronista musulmán (apud Maqqari,Analectes, II, 59) hace a la «paidofilias» (hubb al-walad) de al-Hakam II, antes de su accesién al trono. En todo caso es evidente que sólo después de su adveni- miento fué cuando se preocupó de tener un hijo susceptible de sucederle. ¿Habrá que creer, según el mismo cronista, que fué la practica de este vicio, tan corriente en la España musulmana en todas las épocas, el que occasionó la paternidad tan tardía de al-Hakam II? Véase, sin embargo, Ibn Hazm,Tawg al-hamama, pág. 6, a propósito de la pasión que sentía el califa por su concubina Subh.
^abPrado-Vilar, Francisco (1997). "Circular visions of fertility and punishment: caliphal ivory caskets from al-Andalus".Muqarnas.14:19–41.doi:10.1163/22118993-90000368.JSTOR1523234.
^De Gayangos, Pascual (1843).The History Of The Mohammedan Dynasties In Spain Vol II. By W.H.Allen And Company. pp. 176-7.Ibn Bessam, copying Ibn Hayyan, says, "Among other virtues Al-hakem possessed that of paternal love in such a degree that it blinded his prudence and induced him to appoint a son of his, who was then a child, to be his successor, in preference to any of his brothers or nephews, all men of mature age, well versed in the management of affairs and in the command of the armies, capable of making their mandates obeyed, and of maintaining themselves in power.
^al-Wasif, M. F. (2012). "Mustansir, al-Hakam".Biblioteca de al-Andalus. Vol. 7. Árabes Fundación Ibn Tufayl de Estudios Árabes. p. 591.ISBN978-84-934026-0-0.Cabe señalar, por último, que sería bastante difícil dar credibilidad a la cuestión de la "paidofilia" de al-Hakam II en un pasaje de Ibn Hayyān tomado por al-Maqqarī -y viene más claro en elDajīra-, en el cual figuraḥubb al-walad en el contexto de una crítica de Ibn Ḥayyān dirigida a al-Ḥakam II por haberse dejado llevar por el amor al hijo (ḥubb al-walad) que le impulsó a nombrar y tomar juramento de fidelidad a su hijo menor en calidad de presunto heredero del califato, acto que tuvo lugar el 1 de Jumāda II del 365 (=5 febrero 975) en el Alcázar de Córdoba, La misma crítica basada en dicho argumento, la hace también Ibn al-Jaṭīb en susAʿmāl. Y no vamos a insistir in la evidencia de que el términowaled significa "hijo", empleado en muchas ocasiones en los textos andalusíes para referirse a un infante Omeya, y no "efebo/s" (gulam/gilmān), y éste precedido por "hubb" indicaría lo que se ha dicho antes.
^García-Sanjuán, Alejandro (2008)."Legalidad islámica y legitimidad política en el califato de Córdoba: la proclamación de Hisham II (360-66/971-76)".Al-Qantara XXIX-1 (2008).29 (1): 70.Ibn Hayyan, quien no duda en condenar la actuación de al-Hakam sobre su sucesión, acusándolo de haberse dejado llevar en exceso por el amor hacia el hijo (kāna mimman istahwā-hu ḥubb al-walad wa-afraṭa fī-hī) y descartando así como heredero a algún adulto, bien fuese alguno de sus hermanos u otro miembro del linaje Omeya que pudiese haber desempeñado el imamato «sin favoritismos» (bi-lā muḥābā).