Madrid · Spain · Self-guided audio tour
Madrid's Biblioteca Nacional: Leonardo Was Here All Along
Find out how two Leonardo da Vinci notebooks were declared lost for nearly seventy years inside this library, how Ptolemy maps vanished from a guarded reading room in 2007, and why a king's 1712 rule still fills its shelves.
- Stops
- 7
- App languages
- 30+
- Offline
- Yes
- Updated
- November 2026
Stop 1 of 7 · free to read
A French King Who Wanted a Copy of Every Book
How a foreign Bourbon's royal library became Spain's printed memory
In 1700, Spain's last Habsburg king died without an heir and left his throne to a Frenchman. Philip, Duke of Anjou, was the grandson of Louis the Fourteenth, and Europe went to war for more than a decade over whether he could keep it. So the new king, Philip the Fifth, had a problem. He was a foreign Bourbon ruling a proud country, and he needed to look Spanish.
One of his answers was books.
In 1711, with that war still going, Philip approved a plan drawn up by his confessor, a French Jesuit named Pierre Robinet. The idea was borrowed straight from Paris: a royal library, but open to the public. It opened in 1712 in rooms beside the old Alcázar palace. The king brought around six thousand books with him from France. And the bills were paid with taxes on luxury goods, not out of the royal purse. Very French. Very practical.
Keep reading
Then came the clever part. In 1716, Philip ordered printers to hand over a copy of every book printed in Spain. Enforcement was patchy, to put it kindly. But the principle stuck, and it still shapes this place. By law, Spain's printed memory flows here.
In 1836 the Crown let go. The government took over, and the royal library became the National Library. A year later, after the writer Antonia Gutiérrez petitioned for it, women were allowed to read here for the first time. Over that century most of the great antique treasures arrived, through confiscations, purchases and gifts. The collection kept outgrowing its homes until 1896, when the library opened in the grand building in front of you. It still shares it with the National Archaeological Museum.
The scale is the thing to keep in mind. The library holds something like twenty-six million items, and since 1991 the overflow has lived at a second site in Alcalá de Henares. A place this size exists to keep things safe. But the more you keep, the harder it is to know exactly what you have, and where it is. Notebooks that went missing in plain sight, and maps that simply walked out the door: that's the other side of a library this big.
Let's start at the steps.

The route
7 stops, one story
Find out how two Leonardo da Vinci notebooks were declared lost for nearly seventy years inside this library, how Ptolemy maps vanished from a guarded reading room in 2007, and why a king's 1712 rule still fills its shelves.
- 1
A French King Who Wanted a Copy of Every Book
Philip V's 1716 order that printers hand over a copy of every book still shapes this place, and in 1837 a writer's petition opened its reading rooms to women.
Read it above ↑ - 2
Palace of Libraries and Museums
façade and front steps
Queen Isabel II laid the first stone in 1866, but when the palace was finally ready, its grand public debut had nothing to do with books.
- 3
The Madrid Codices
Leonardo's notebooks found in the stacks
In 1898 a scholar asking for two Leonardo da Vinci notebooks was told they were lost. In 1967 an American professor from Massachusetts proved otherwise.
- 4
Sala Cervantes and the stolen Ptolemy maps
Two world maps cut from a 1482 edition of Ptolemy's Geography later surfaced across the Atlantic, and the scandal reached all the way to the director's office.
- 5
A royal library for the public
1712, Robinet and the deposit rule
Long before it was national, this library sat in a passage beside the old Alcázar, and its first head left Spain in 1715 when his co-planner fell foul of the Inquisition.
- 6
The library at war
Tomás Navarro Tomás and the evacuation
He was a scholar of the Spanish language, never a career administrator, yet he sent the library's most valuable holdings away from Madrid, in the end as far as Geneva.
- 7
The Beato of Fernando I and Sancha
a royal book that left Spain and came back
Finished in 1047, this manuscript builds its royal owners' names into a page laid out as a labyrinth. How it got from León to this library is still unclear.
Hear all 7 stops in the app
The app plays every stop, shows where you are on the map and answers your questions on the way. Free to start your first tour.
Keep exploring
More guides in Madrid
FAQ
Questions about this guide
Where does the Madrid's Biblioteca Nacional: Leonardo Was Here All Along audio guide start?
At A French King Who Wanted a Copy of Every Book, in Madrid. From there the app takes you from stop to stop with GPS.
How many stops are there?
7 stops: A French King Who Wanted a Copy of Every Book, Palace of Libraries and Museums, The Madrid Codices and 4 more. The first one is free to read on this page.
Does it work offline?
Yes. Download the guide and its audio over Wi-Fi, then use it outdoors with GPS without spending mobile data.
Is it free?
The GuideSofia app is free to download, and it's free to start your first tour.
Which language is it in?
This page is in en-US. In the app, the guide is narrated in 30+ languages.
Can I ask the guide questions?
Yes. Open the chat in the app and ask about what you are looking at, local history, food or nearby places.
Take Madrid's Biblioteca Nacional: Leonardo Was Here All Along in your pocket
Download GuideSofia, open this guide and start walking. It's free to start your first tour.
.jpg)

