Home / Mogao Caves / Cave stories / Cave 17

Mogao Cave 17: The Library Cave

Last verified 12 November 2026 · Independent guide, not a tour operator · Facts pack checked 4 November 2026 Asia/Shanghai

Ask a planning question →

Mogao Cave 17 — the Library Cave — began as a Late Tang memorial portrait cave for monastic leader Hong Bian, set into Cave 16’s corridor. Sealed manuscripts rediscovered in 1900 reshaped Dunhuang Studies.

Culture leaf. This page is about cave function, seal and discovery. Booking windows and prices stay on the ticket guide.

Facts at a glance

ItemDetail
Cave17 (companion 16 — same narrative; no thin separate Cave 16 page)
Era labelsBuilt ~851–862 (Dazhong–Xiantong) as Hong Bian memorial chapel; manuscripts sealed ~early 11th c.; rediscovered 1900
FormSmall truncated-pyramid near-square chamber; meditation couch on north with Hong Bian seated image
Open statusSet daily by the Academy — the Academy’s 30 March 2026 open notice (dha.ac.cn) lists Caves 016 and 017 among the ordinary open caves; list checked 14 November 2026. Open lists are revised through the year, so follow the Academy notice in force on the day you visit. No prices or fixed hours here.
DigitalDigital Library Cave twin for 16/17; e-dunhuang lists Cave 017 — product entry status 需站长核对

The story

Hong Bian and the portrait cave (影窟)

Per the Academy-authorized University of Washington Cave 17 page, Hong Bian (secular surname Wu) was skilled in Tibetan language and linked to Zhang Yichao’s Hexi recovery; he was appointed Hexi Chief Buddhist Controller. The small chapel carries a memorial vocabulary: north wall Bodhi trees with flask and satchel; east a nun with fan; west an attendant with staff. That programme marks a memorial portrait cave, not a Tang-era lending library. Calling it the “Library Cave” names what the sealed chamber later held — not the original monastic function.

Cave 16 is the large cave associated with Hong Bian’s patronage; Cave 17 sits behind the north corridor wall. Read them as a companion pair: a large monastic space and its memorial annex.

Reading Cave 17 without Cave 16 flattens the site. Visitors who only remember “Library Cave” from guidebooks often expect a Tang scriptorium with shelves. The archaeology and the memorial programme say otherwise: a monastic officer’s portrait chapel was later reused as a sealed store. That sequence — memorial first, archive second, global manuscript studies third — is the useful mental model before you walk the corridor or open a digital twin.

Answer-ready framing (sources named; pack checked 4 November 2026 Asia/Shanghai): Cave 17 was originally a Late Tang memorial portrait cave for Hexi Chief Buddhist Controller Hong Bian, with manuscripts sealed around the early eleventh century and rediscovered in 1900. NCHA describes more than 50,000 manuscripts and objects; UNESCO speaks of tens of thousands. Cave 17 opens from the north side of Cave 16’s corridor. Why the chamber was sealed remains undecided among scholars.

The seal (~early 11th century)

Buddhist scriptures, secular documents, silk paintings and ritual objects were walled in; the entrance was plastered and painted over. Why the chamber was sealed remains undecided in scholarship — war, doctrinal change and other motives circulate — so site writing should say the question is not finally settled.

1900 rediscovery and dispersal

In Qing Guangxu 26 (1900; an older Guangxu 25 variant exists — lead with 1900), Daoist Wang Yuanlu clearing sand found the sealed chamber. Artifact scale belongs in order-of-magnitude language: tens of thousands / 50,000+ (NCHA); public “~50,000” and “70,000+” variance is real — avoid single-digit precision. The cache is multi-script and multi-language, spanning religion, history, contracts, medicine and more. Stein, Pelliot and others acquired holdings that dispersed overseas; the find launched global Dunhuang Studies. UNESCO’s Mogao brief likewise speaks of the Library Cave and tens of thousands of manuscripts.

What to notice

  1. Position — Cave 17 nested in Cave 16’s corridor: an annex chamber, not a standalone facade.
  2. Hong Bian painted sculpture — realistic monk portrait (digital preview is a fair prep).
  3. Twin trees and attendants — 影堂 vocabulary of flask, satchel, nun and attendant.
  4. Sealed doorway / later mural layer — why the cache stayed hidden for roughly nine centuries.
  5. Literature dimension — multilingual manuscripts plus secular documents = faith archive and social archive together.

For English-primary readers, Cave 17 is also the cleanest hinge between “Mogao as painted chapels” and “Mogao as a world manuscript archive.” Museums and Digital Library Cave projects show the literature layer under protection rules; the cliff visit, when 16/17 are on route, shows the annex geometry that made sealing possible. Keep those two experiences distinct: digital twin prep does not replace a real corridor walk, and a real corridor walk does not invent a Tang public library.

Visit note

Real-name timed reservation, Digital Exhibition Centre first, and cliff-cave rotation are standing principles — not a promise that 16/17 sit on your day’s ordinary or special route. Whether those numbers open for your slot: verify against the latest Academy notice. Digital twin / Digital Dunhuang helps for prep. For booking windows and official channels, use the Mogao ticket guide.

Mogao overview · Cave-story index · Cave 156 Zhang Yichao’s Procession · Cave 61 Map of Mount Wutai · Cave 96 Nine-Storey · Cave 257 Deer King · Dunhuang hub · Tickets

Ask a planning question

Ask a planning question. We reply in English. We do not sell tours, tickets or packages.

Independent guide, not a tour operator — we do not sell tours, tickets or packages.

Or email hello@exploregansu.com.

Sources

Independent guide, not a tour operator. Open status changes with conservation. Last verified 12 November 2026.

Frequently asked

What was the original function of Mogao Cave 17, and how did it get the name “Library Cave”?

Mogao Cave 17 was originally built as a Late Tang memorial portrait cave for monastic leader Hong Bian, who served as Hexi Chief Buddhist Controller. It was later reused to store sealed manuscripts, so it got the name “Library Cave” for these later holdings rather than its initial purpose.

When was Mogao Cave 17 constructed, when were its manuscripts sealed, and when was the sealed chamber rediscovered?

Mogao Cave 17 was built around 851–862 as Hong Bian’s memorial chapel. Its manuscripts were sealed around the early 11th century, and the sealed chamber holding these items was rediscovered in 1900 by Daoist Wang Yuanlu while he was clearing sand.

What is the relationship between Mogao Cave 17 and Cave 16, and how should visitors understand the two caves?

Mogao Cave 17 is a small memorial annex nested in the north side of Cave 16’s corridor, and Cave 16 is the large associated cave linked to Hong Bian’s patronage. Visitors should treat them as a companion pair, as viewing Cave 17 alone flattens understanding of the site.