It was Miguel de Cervantes' dying wish to be buried inside the walls of Madrid's Convento de las Trinitarias Descalzas — the Convent of the Barefoot Trinitarians — where a dozen cloistered nuns still live today, nearly 400 years later.
Cervantes, born in 1547, is the most famous writer in the Spanish language. But the world would never have read his literature, if it weren't for the Trinitarian nuns. Cervantes believed he owed his life to them.
Because before Cervantes wrote his two-volume masterpiece, The Ingenious Gentleman Don Quixote of La Mancha, the author had some chivalrous adventures of his own.
As a young man in his early 20s, he fled Spain for Rome, after wounding a nobleman in a duel. By 1570, he returned home and enlisted in the Spanish navy. He went to war to defend the pope — and got shot in twice in the ribs, and once in the shoulder — an injury that left his left arm paralyzed.
And it was only then that he got kidnapped by Algerian pirates.
"He was taken prisoner. He spent five years — five terrible years — as a slave, as a captive," says historian Fernando del Prado, who has devoted his life to studying Cervantes.
With Cervantes enslaved in Africa, his family appealed to the Trinitarian nuns. They managed to raise a ransom and deliver it to the pirates — which won Cervantes his freedom.
The fledgling author returned to Spain, and prayed at the Trinitarians' convent.
He worked variously as a civil servant and a banker and eventually wrote Don Quixote, now recognized as the world's first modern novel. The epic novel tells the tale of a gentleman with romantic ideas and bumbling adventures across Spain's La Mancha plains.
Over the past year and a half, Madrid has embarked on a quixotic mission of its own, locating Cervantes' bones under the Trinitarians' convent, and finally marking them with a gravestone.
In an underground crypt, geophysicists used georadar to map the contours of long-forgotten burial chambers.
"It's a magnetic impulse, like an X-ray," says Luis Avial, the technical director of Falcon High Tech, a geophysics company hired by the city of Madrid. "We put this strong signal in the ground, and what came back was the contours of all the cavities, structures and graves underneath. We were able to see it all."
Once Avial and his team of geophysicists were able to see that there were indeed graves buried under the convent — as legend has long held — they turned the operation over to archaeologists and forensic anthropologists, who began excavations.
"The only problem was the people who live in the convent. We needed to be very careful not to disturb the nuns living there in silence," Avial says. "But the technology — it isn't difficult."
After digging for weeks, archaeologists found the bones of at least 15 people — men, women and children. They're believed to be anonymous faithful interred under the convent, over the centuries.
But one set of bones was found inside the remnants of a splintered wooden coffin etched with the initials "M.C." The skeleton's ribs were flayed from bullet wounds — and its left arm crippled. Telltale signs, even before DNA testing, that the archaeologists had found their man.
"When I saw that rib — I thought, 'We've found Cervantes at last!'," says Francisco Exteberría, a Spanish forensic anthropologist who famously exhumed the body of the Chilean poet Pablo Neruda in 2013. "It was a special moment," he says, recalling how he came across Cervantes' bones. "The whole team was there in silence, underground, studying what we found — and we all knew."
Earlier this month, Exteberría's team re-buried Cervantes' bones near where they found them — adhering to the author's dying wish — and dedicated a monument to him upstairs, in the convent.
Soldiers stood at a attention and saluted the monument, as a military band played solemn music that reverberated through the convent. It was the same Spanish military unit Cervantes himself once served in.
Even the nuns came out from behind their dark screen, where they're normally cloistered upstairs, to celebrate.
"It was like a rescue," said Mother Superior Sor Amada de Jesus, giggling to reporters. She played down suggestions the excavations must have been noisy for nuns in prayer. "They were pretty discreet," she said of the workmen.
Madrid's outgoing mayor, Ana Botella, read aloud an inscription on Cervantes' new gravestone — some of the last words the author himself penned in 1616, in his last novel The Trials of Persiles and Segismunda, written just before his death:
Time is brief,
and yet my desire to live
keeps me alive.
"With emotion, it's time to say, 'Don Miguel, mission accomplished,'" Botella told a crowd.
Cervantes died within a day of William Shakespeare, 400 years ago next year. Madrid officials are negotiating with the Trinitarian nuns over new visiting hours for their convent. For now, tourists can only pay homage to Cervantes during daily mass.