DunhuangChina 40° N · 94° E Updated Aug 2026
Cave 17 is a monk's memorial chapel barely 3m wide that hid 50,000 manuscripts for 900 years. It was found in 1900 — most now sit abroad.
Photo: Zhangzhugang · CC BY-SA 4.0
A Daoist priest hired sand-shovellers in the summer of 1900, and one of them leaned against a corridor wall that answered back hollow. Behind the plaster sat a bricked doorway, and behind that a chamber 2.6 by 2.7 metres — smaller than a single-car garage — packed to the ceiling with roughly 50,000 manuscripts nobody had touched in nine hundred years. That room is the Library Cave at the Mogao Caves, 25 km southeast of Dunhuang in China's Gansu corridor, and it holds the fullest surviving record of ordinary medieval Asian life anywhere on earth. Come for the gold-leaf Buddhas. Stay for the divorce settlements.
The first thing to understand is that Cave 17 has no door of its own. It's a hole cut into the north wall of the entrance passage of Cave 16, a much larger Tang cave — which means visitors queue to see the Library Cave while standing inside a different cave entirely, looking at a niche in its corridor. That's exactly why the concealment worked for so long. A bricked, plastered, painted wall reads as a wall.
What came out of it wasn't only scripture. Alongside Buddhist sutras came loan contracts, wills, tax registers, medical prescriptions, star charts, school exercises, dance notations, silk banners and embroideries, in Chinese, Tibetan, Sogdian, Khotanese, Uighur, Sanskrit, Old Turkic and even Hebrew — dated roughly between the 4th and 11th centuries. Most of what historians know about daily life in a medieval Chinese frontier town came out of this one small room. Nobody inventoried it before it was emptied, so the count of 50,000 is a reconstruction, not a tally.
Go in with the right expectations. The chamber today is bare except for the seated portrait statue, the lighting is dim by design, and your time inside is measured in seconds rather than minutes — the Dunhuang Academy caps daily visitor numbers because breath and body heat raise humidity, mobilize salt in the plaster and flake pigment off walls painted in the 6th century. Start at the Digital Exhibition Centre, where the films give you the detail the caves themselves can no longer afford to show you. Then walk the cliff. Roughly 45,000 m² of murals survive across 492 decorated caves here — enough painted wall to cover six football pitches, all of it cut and coloured by hand.
History
Tradition dates the first cave here to 366 CE, when the travelling monk Le Zun stopped below this cliff at dusk, watched the setting sun set Sanwei Mountain blazing across the valley, and saw a thousand Buddhas in the light. He cut a cave on the spot; a second monk, Faliang, cut one beside him. The story survives in Li Junxiu's Fokan Ji, written under Wu Zetian, and on a stele in Cave 332 — which is to say it comes to us three centuries after the fact. An alternative text gives 353. Scholars treat the founding as a literary tradition rather than an archaeological fact: the earliest cave carrying a dated inscription is Cave 285, at 538–539.
For the next thousand years, quarrymen, plasterers, sculptors and painters — hired by merchant families, monastic officials and regional warlords, and almost none of them named in the record — chiselled and coloured their way along two kilometres of conglomerate cliff. Tibetan armies took Dunhuang around 781 and administered it for six decades, which is why thousands of Tibetan-language manuscripts came out of Cave 17. In 848, Zhang Yichao's fighters drove the Tibetan garrison out and founded the Guiyijun regime, loyal to a Tang court that barely existed anymore. That single year set up everything that follows.
The turning point
Cave 17 wasn't built for books. Records show it was cut between 851 and 862 as a memorial chapel — a portrait hall — for the monk Hong Bian, whom the new Guiyijun government made Chief of Monks for the whole Hexi corridor after 848. Craftsmen carved him a seated portrait statue and painted the back wall behind it: two bodhi trees, a nun holding a fan, an attendant with a staff, and the detail almost every visitor walks past — a pilgrim's satchel and a water flask hanging from a branch.
Sometime in the early 11th century, someone carried Hong Bian's statue out, filled the empty chapel with bundled manuscripts, bricked the doorway shut, plastered it and painted over the plaster. Nothing inside dates later than about 1002. Then the room disappeared for nine hundred years, and Mogao itself faded with it once the Ming abandoned the overland Silk Road for sea trade. Neglect turned out to be the best conservation the site ever got.
Enter Wang Yuanlu — a Hubei famine refugee, ex-Qing soldier, ordained Daoist, and therefore a priest of the wrong religion squatting in the greatest Buddhist site in China. He arrived in the 1890s, begged alms from Dunhuang farmers, and spent years shovelling drift sand out of cave mouths. Chinese accounts give the date of the discovery as 22 June 1900. He had no salary, no institutional backing and no legal claim to anything he'd just found.
So he tried to give it away. He reported the find to the Dunhuang county magistrate, who reportedly dismissed the scrolls as old paper; he carried samples to the circuit intendant at Jiuquan; tradition holds he wrote to the Empress Dowager Cixi herself. No reply came — 1900 was the year the Eight-Nation Alliance marched on Beijing, and a collapsing dynasty had other problems. The turning point came seven years later, when Aurel Stein camped below the cliff and, unable to read a word of the manuscripts, presented himself as a devotee of Xuanzang, the pilgrim-monk Wang venerated. Stein's account says his secretary Jiang Xiaowan pulled sutras translated by Xuanzang out of the very first bundles. Wang read it as permission from the monk, and sold.
Yes — though the Library Cave itself is a bare room barely 2.6 by 2.7 metres, about the size of a garden shed, and that's the point. Roughly 50,000 manuscripts came out of it in 1900: sutras in seven languages, plus loan contracts, divorce settlements and medical recipes that give us most of what we know about ordinary life in a medieval Silk Road town. You're looking at an empty niche in the corridor wall of Cave 16, and the emptiness does the work.
No — the Dunhuang Academy assigns caves by rotation, driven by CO₂ and humidity monitoring inside each chamber. Cave 17 is a frequent stop on the standard 8-cave route but never promised; one 2017 visitor got eight caves and not that one. If your route skips it, the Mogao Grottoes Museum and the Digital Library Cave exhibit cover the story with the Hong Bian statue's context.
Budget three and a half hours door-to-door from Dunhuang, five to six if you want to do it properly. The A ticket runs on a fixed clock: arrive at the Digital Exhibition Center 30 minutes early, two films (~60–70 min), 15-minute shuttle to the cliff, then 75 minutes to two hours of guided caves. Add an hour if you buy a special cave (特窟) at the interpretation desk afterwards.
The full A ticket is ¥238 for domestic visitors and ¥258 with a foreign-language guide, covering both films, eight caves, the shuttle and the museum. The B ticket (¥100) drops the films and gives you four caves — a salvage option when A sells out, not a plan. Special caves cost ¥150–300 each, cash on site, and are never discounted.
Everyone starts at the Digital Exhibition Center, 13–15 km east of town, then rides the site's own shuttle 25 km southeast to the cliff — there's no other road in and no walking route. A taxi or DiDi to the DEC runs ¥20–30 and takes 20–30 minutes; the dedicated shuttle bus from outside Dunhuang Hotel costs about ¥8 but departs only every 30–60 minutes, timed to film sessions. Don't drive straight to the caves; the Academy says plainly that there's no ticket office there.
Either through a registered travel agency or in person at the ticket office inside the Digital Exhibition Center — the only window that serves passports. Bring the original passport (photocopies get rejected, it's scanned) and cash RMB, and be there by 07:30, because the foreign quota is small; one July report had tickets gone by 09:00. The WeChat booking mini-program opens 30 days ahead but generally wants a Chinese ID.
Winter and early spring, if you can take the cold — fewer people, more time per cave, and recent off-seasons have opened more caves than summer. Peak season runs 1 April to 30 November, 08:00–18:00 with last entry at 16:10; off-season is 09:00–17:00, last entry 15:10. Avoid July–September, 1–7 October and early May entirely, and keep a spare day in your Dunhuang plan since sandstorms and heavy rain close the caves outright with full refunds.
No — photography and video are banned inside every cave, flash or not, and guides enforce it as they unlock and relock each door. Shoot the exterior freely: the nine-storey red tower over Cave 96, the terraced walkways, the stupa grove across the river. Also bring a light jacket, since caves hold 15–20 °C while the Gobi outside can pass 40 °C, and leave suitcases 20 inches and over at the free DEC storage.
Built from cited sources · see the method · How we make our guides →
Saved and recently read places — kept on this device only.
Photos may have been resized or cropped.