Skip to main content
history-buffsart-loversarchitecture
Reconstructed marble reception hall at Medina Azahara palace ruins near Córdoba, Spain, sunlight casting sharp shadows across carved stone columns and geometric floor tiles where Lubna of Córdoba worked as palace secretary in the 10th century

Lubna of Córdoba: the slave who ran a royal library

Lubna of Córdoba was an enslaved mathematician who became secretary to Caliph al-Hakam II and helped run his vast palace library at Medina Azahara, Spain.

Portrait of Sophie Marchand
Written by

Art history background with eight years writing interpretive content on Córdoba's Caliphal heritage.

Updated Published
Caliphate of Córdoba929–1031
Lubna of Córdoba was born enslaved inside the Umayyad court at Medina Azahara, and she left it as the woman who ran its library. Her life, documented in a handful of sentences by a biographer writing in the 12th century, roughly two centuries after her 10th-century lifetime. She is known as an Andalusian intellectual, mathematician and poet of the second half of the 10th century, praised for the quality of her writing and her excellence in the sciences.

Born into the palace: slavery at Medina Azahara

Lubna was born into slavery in the 10th century and raised within Madinat al-Zahra,[1] the vast palace-city Abd al-Rahman III had built 4 miles (6.4 km) west of Córdoba in the foothills of the Sierra Morena.[10] She is also known as Lubna al-Qurtubiyya (Lubna of Córdoba). That name tells you something: she was associated enough with the city itself that her biography stuck to it.
Her legal status at birth was enslaved. Writer Kamila Shamsie considers her most likely to have been enslaved within the royal court,[19] and most accounts of her upbringing are scholarly speculation based on what is known about women in a similar position in al-Andalus.[20] One scholarly hypothesis, put forward by José Miguel Puerta Vílchez of the University of Granada, proposes she may have been a daughter of Abd al-Rahman III by an enslaved concubine, which would make her origin both royal and legally unfree simultaneously.[1] The sources record only two daughters of Abd al-Rahman III by name, and Lubna is not among them. The hypothesis is unconfirmed. What is confirmed is that she grew up inside the palace compound, which meant something specific in 10th-century Córdoba.
The Medina Azahara household ran on a formalised system of enslaved labour that was not, by the standards of medieval Europe, uniform in its conditions. Palace-raised enslaved people of evident talent could receive instruction — in languages, in letters, in the disciplines useful to a court that administered a caliphate. This was not generosity. It was rational investment. A household secretary who could read Greek, write Arabic, and compose diplomatic correspondence was worth more than one who could not. Lubna's abilities placed her at the far end of that spectrum, but the mechanism that produced those abilities was institutional, not exceptional.
Ruins of Medina Azahara with arches and columns of the Salon Rico

Explore nearby · Monument

Medina Azahara

Medina Azahara is Córdoba's UNESCO listed Caliphate City: a 10th century palace 8 km from town, with the Salón Rico and award-winning museum. Plan your visit.

What she knew: grammar, mathematics, and four languages

The primary medieval source for Lubna's life is Ibn Bashkuwal, an Andalusian biographer who died in 1183 CE — roughly two centuries after her.[2] His Kitab al-Sila fi Tarikh Aymmat al-Andalus (Book of Connection in the History of the Leaders of al-Andalus) describes her in terms rarely used for any person of her era, enslaved or free, male or female.
His summary, as modern accounts relay it: she was a wise writer, grammarian, poetess, adept in arithmetic, able to tackle the most complicated geometric and algebraic problems known in her time.[3] That last phrase is worth sitting with. He is not saying she was educated for a woman. He is saying she was exceptional by the standard of her age, full stop.

4 languages

Modern accounts credit Lubna of Córdoba with fluency in Latin, Greek, and Hebrew alongside Arabic.[4]
Breaking down the skills Ibn Bashkuwal lists:
  • Grammar and rhetoric: the foundation of any scribal career in the Arabic tradition; a secretary who composed clumsy sentences could not draft royal correspondence
  • Poetry: not decoration — in 10th-century courtly culture, the ability to compose verse was intellectual currency, a sign of genuine command over the language
  • Arithmetic, geometry, and algebra: the applied mathematical sciences; her work on manuscripts by Archimedes and Euclid required more than copying ability — it required comprehension
  • Languages: Arabic (primary), Latin, Greek, and Hebrew[4]
That last list is where her position becomes structurally unusual. Medieval Córdoba was genuinely multilingual — the court employed Arab Muslims, Mozarab Christians who wrote in Arabic, and Jewish scholars who moved between Hebrew, Arabic, and Latin. But the combination of all four in a single person was rare enough to be operationally significant. Knowing four languages would have been valuable to a translation effort that moved Latin and Greek texts into Arabic, though no source describes her role in it in those terms. The scholars, translators, and physicians she worked alongside are covered in our guide to Córdoba's Islamic Golden Age.

Secretary to the caliph: running a vast royal library

Al-Hakam II came to power in 961 CE and built a library whose catalogue is claimed to have run to 44 volumes, with some accounts speaking of more than 600,000 books.[5] He had books purchased from eight cities: Damascus, Baghdad, Constantinople, Cairo, Mecca, Medina, Kufa and Basra.[14] Figures of that size involve rhetorical amplification alongside real scale, and none can be checked today.
Lubna started out as a copyist for Al-Hakam II's library. Al-Hakam II then freed her and appointed her as his resident secretary and scholar, and she took charge of the library's workings.[12] A copyist transcribes. A secretary drafts and corresponds, and that is the work that came to define her role.
In practice, modern accounts credit her with these responsibilities:
  • Transcribing and annotating manuscripts for the royal collection
  • Drafting official letters and diplomatic correspondence, for which one modern account calls her "the ideal candidate"[18]
  • Collaborating with Hasdai ibn Shaprut, the Jewish physician and diplomat at the caliphal court, as the driving force behind the creation of the library[6]
  • Working on Arabic translations of Archimedes and Euclid, which required mathematical fluency, not just linguistic skill[4]
Hasdai ibn Shaprut is worth noting here. A Jewish scholar, physician and diplomat at the caliphal court, he translated a Byzantine gift codex of Dioscorides' botany into Arabic with the help of a learned Greek monk named Nicholas.[15] His partnership with Lubna — a freed enslaved woman and a Jewish physician working together at the caliphal court of Córdoba — captures the specific character of al-Hakam II's library better than any general description of Córdoba's tolerance can.

Recommended tours

Tours are selected for quality, not commission. We earn a small fee if you book — at no extra cost to you.

The acquisition network also fed a translation committee: joint teams of Muwallad Muslims (Iberian converts) and Mozarab Catholics worked together to render Latin and Greek texts into Arabic. Her multilingual abilities would have been useful across this system.

Emancipation and what it meant: the mawla in Umayyad society

Al-Hakam II freed Lubna, along with at least 99 other members of his household, as part of a documented practice of emancipation.[1] In Islamic law, the freed person (mawla) retained a bond of loyalty to the person who had freed them, and often rose to positions of considerable trust. Being freed by the caliph personally was a specific form of social elevation.
Her role after emancipation stayed within the palace, but her standing changed. As the caliph's secretary, one modern account calls her the ideal candidate to draft official letters and diplomatic correspondence.[18] In a court where written communication carried the full weight of state authority, that drafting role mattered.
According to one modern account, she established a school within the library, where she taught mathematics, philosophy, grammar, and other subjects to the street children of Córdoba.[7] The primary sourcing for this detail is thinner than for her palace role.
The modern question about whether Lubna was truly empowered or merely a more privileged form of constrained is worth addressing directly. Her emancipation was real and its social consequences were real. She was not simply a slave who did exceptional work. But the system that produced her career was not designed to liberate people like her — it was designed to extract talent from people like her, and she navigated it with extraordinary results. Subh of Córdoba, the concubine who would become regent a decade after Lubna's career peaked, represents a parallel trajectory in political power. What both women shared was the specific capacity of the Umayyad court to absorb and elevate talent from people it had acquired as property.
But the system that produced her career was not designed to liberate people like her — it was designed to extract talent from people like her, and she navigated it with extraordinary results.
Her death date is given only approximately: the Spanish Wikipedia entry lists it as the 10th century or 984 (Siglo X o 984).[11] Treat 984 as an estimate, not a fixed point.

One among 170: female scribes in 10th-century Córdoba

Lubna was exceptional, but she was not alone.
According to Arab chronicles, in the time of Caliph Al-Hakam II, more than 170 literate women could be found in some suburbs of the city; these women were responsible for making copies of valuable manuscripts.[8] The manuscript trade also depended on a material input of its own, papermaking in al-Andalus, where no water-powered paper mill is documented.[21]
Lubna stood apart from this group in specific ways. She was not a neighbourhood copyist. She worked inside the palace, under the direct authority of the caliph. Her mathematical and philosophical literacy went well beyond what the manuscript trade required.
The 10th century leaves thin sources, and Lubna's entry in Ibn Bashkuwal's dictionary is brief.

What the sources say — and what they don't

The honest summary: we know Lubna existed, we know broadly what she did, we know how her contemporaries and near-contemporaries assessed her. We do not have a single word she wrote.
Ibn Bashkuwal, the principal source, was born in 1101 — roughly 120 years after Lubna's likely death, which is dated only approximately to the 10th century.[2] The Kitab al-Sila is a continuation of Ibn al-Faraḍī's (d. 1013) famous biographical dictionary of Islamic Spain's scholars.[17] His account of Lubna is brief but specific: it names her skills, her institutional role, and her intellectual reputation.
The name variants in the sources (Labna, Libana, Labona, Lubna al-Qurtubiyya) have fed a scholarly debate about whether the sources are actually describing one person or two.
Writer Kamila Shamsie has proposed that Lubna may represent two distinct women whose records were merged by a chronicler unable to credit multiple female intellectuals simultaneously.[9] The hypothesis is not universally accepted, and the evidence for it is circumstantial. It is worth knowing because it illustrates the methodological problem: we are reading medieval men writing about medieval women through the assumptions of their own time, and those assumptions bent toward compression and toward treating educated women as singular exceptions.
A Moorish courtyard evoking Game of Thrones' Dorne architecture, inspired by medieval Córdoba: red-and-white striped horseshoe arches, a muqarnas dome, and a shaded reflecting pool at golden hour, photorealistic

Deep dive · Article

Game of Thrones' Dorne: Córdoba's Real Architecture

HBO's Game of Thrones built Dorne's look from medieval Córdoba's Umayyad architecture: horseshoe arches, muqarnas domes, though filming happened in Seville.

What the sources cannot give us is her inner life, her own reasoning, her account of what it felt like to work in al-Hakam II's royal library. The condition of most women's history from this period is exactly this: the facts of a public career, documented by external observers; the person who inhabited it, absent.
Her library did not survive her long. Almanzor, the regent who seized control after al-Hakam II's death in 976, had works considered heretical purged from the library to appease conservative religious opinion.[23] The civil war of the early 11th century finished the rest. What Lubna helped build was dispersed within a generation of her death. That is a different story — told in detail elsewhere — but it is worth knowing as the ending.

Frequently asked questions

Who was Lubna of Córdoba?

Lubna of Córdoba (also known as Lubna al-Qurtubiyya) was a 10th-century Andalusian intellectual born into slavery in the 10th century and raised at the Umayyad palace of Medina Azahara, near Córdoba. She was a mathematician, grammarian, poet, and multilingual scholar who rose to become secretary to Caliph al-Hakam II and helped manage his legendary palace library. Her main medieval source is Ibn Bashkuwal's biographical dictionary, written in the 12th century, roughly two centuries after her lifetime.

Was Lubna of Córdoba a real historical figure?

Yes. She appears in Ibn Bashkuwal's Kitab al-Sila, a formal biographical dictionary of Córdoba's scholars compiled in the 12th century. However, no writing by Lubna herself survives, all accounts are external, and her exact dates remain uncertain. One proposal, from the writer Kamila Shamsie, is that the name Lubna may cover two distinct women, Lubna and Fatima, merged into one entry.

What was Lubna's role in al-Hakam II's library?

She began as a copyist for al-Hakam II's library; he then freed her and appointed her his resident secretary and scholar, and she took charge of the library's workings. Modern accounts credit her with transcribing and annotating manuscripts, drafting official letters and diplomatic correspondence (one account calls her the ideal candidate for that work), and working on Arabic translations of Archimedes and Euclid. She collaborated with Hasdai ibn Shaprut — the Jewish diplomat and court physician — as the driving force behind the creation of the library. She rose from copyist to a scholar who annotated and worked on the collection.

Were there other women scholars in al-Andalus?

Yes. Arab chronicles record more than 170 literate women in some suburbs of Córdoba who made copies of valuable manuscripts in the 10th century. Lubna stood apart from the suburban copyist class because she worked at palace level, with mathematical and multilingual skills well beyond what manuscript copying required.

What happened to al-Hakam II's library after his death?

Al-Hakam II died in 976 CE. Almanzor, who effectively seized power as regent for the young Caliph Hisham II, had works considered heretical purged from the library to appease religious conservatives.[23] The civil war (fitna) of 1009–1031 left Medina Azahara pillaged and in ruins.[22] The full story of the library's dispersal and destruction is covered in the separate article on al-Hakam II's library.

Sources

23 references Show
  1. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “Lubna was born into slavery and raised within the Madīnat al-Zahrā palace.”

  2. Wikipedia — Ibn Bashkuwal (opens in a new tab)

    “September 1101 – 5 January 1183), was an influential Andalusian traditionist and biographer”

  3. newageislam.com (opens in a new tab)

    “the most complicated geometric and algebraic problems known in her time.”

  4. newageislam.com (opens in a new tab)

    “Fluent in multiple languages, including Latin, Greek, and Hebrew”

  5. Wikipedia — Al Hakam II (opens in a new tab)

    “Some accounts speak of him having more than 600,000 books.”

  6. muslimheritage.com (opens in a new tab)

    “Along with Hasdai ibn Shaprut, she was the driving force behind the creation of the famous library of Medina Azahara”

  7. newageislam.com (opens in a new tab)

    “She established a school within the library, where she taught mathematics, philosophy, grammar, and other subjects to the street children of Cordoba.”

  8. muslimheritage.com (opens in a new tab)

    “According to Arab chronicles, in the time of Caliph Al-Hakam II, more than 170 literate women could be found in some suburbs of the city”

  9. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “Kamila Shamsie claims that Lubna might have been two different women, Lubna and Fatima – combined into one woman because the historian responsible could not comprehend that there were two female intellectuals at the same court.”

  10. Wikipedia — Medina Azahara (opens in a new tab)

    “Located 4 miles (6.4 km) west of Córdoba in the foothills of the Sierra Morena”

  11. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “Al-Hakam II followed in his father's footsteps by freeing Lubna and appointing her as his resident secretary and scholar.”

  12. Wikipedia — The Dinner Party (opens in a new tab)

    “one of 998 women and one man who have made a mark on history”

  13. Wikipedia — Al Hakam II (opens in a new tab)

    “He had books purchased from Damascus, Baghdad, Constantinople, Cairo, Mecca, Medina, Kufa, and Basra.”

  14. Wikipedia — Hasdai ibn Shaprut (opens in a new tab)

    “Hasdai, with the aid of a learned Greek monk named Nicholas, translated it into Arabic”

  15. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “She appears as part of the Heritage Floor as part of Judy Chicago's The Dinner Party art installation (1979).”

  16. Wikipedia — Ibn Bashkuwal (opens in a new tab)

    “continuation of Ibn al-Faraḍī's (d. 1013) famous biographical dictionary of Islamic Spain's scholars”

  17. newageislam.com (opens in a new tab)

    “making her the ideal candidate to draft official letters and diplomatic correspondence”

  18. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “She also affirms that Lubna was most likely enslaved within the royal court”

  19. Wikipedia — Lubna of Córdoba (opens in a new tab)

    “Most accounts available are historian and scholar speculations based on facts about women in a similar position during the 11th century in Al-Andalus.”

  20. Wikipedia — Paper mill (opens in a new tab)

    “An exhaustive survey of milling in Al-Andalus did not uncover water-powered paper mills”

  21. Wikipedia — Medina Azahara (opens in a new tab)

    “by the end of this period Madinat al-Zahra, the city of Abd ar-Rahman III, had been pillaged and left in ruins”

  22. Wikipedia — Almanzor (opens in a new tab)

    “the purging from Al-Hakam's important library of works considered heretical”