A Cliff of Paintings at the Edge of the Sand

One oasis, two Han-dynasty gates, 735 caves, and a sealed room that turned out to hold a thousand years of paper.

Written and edited by one writer · Last reviewed November 2026 · Sources listed at the end

Dunhuang exists because of a narrow fact of geography: it sits where the Hexi Corridor opens onto the Taklamakan, at the last reliable water before the desert and the first reliable water after it. Every caravan crossing from China toward the oases of the Tarim Basin passed through, which made the town a toll booth, a market, and — for about a thousand years — a place where people with money paid to have their faith painted on a wall.

The town as a doorway

The Han dynasty pushed its frontier west in the second century BC and organised the corridor into commanderies; Dunhuang was established as one of them in 111 BC. Two passes guarded the routes out: Yumen, the Jade Gate, named for the jade coming east from Khotan, and Yangguan to its south. Both survive as eroded rammed-earth platforms rather than buildings, and both belonged to a line of beacon towers that could pass a signal back toward the corridor faster than a rider could cover the same ground.

This is worth holding on to, because it explains the caves. Dunhuang was not a great artistic centre in the way that a capital is. It was a crossing point, and crossing points collect money, pilgrims and foreign ideas. Buddhism arrived along the same road, and the town became a place where travelling merchants could buy merit before a hazardous crossing.

Why the paintings are in a cliff

The Mogao caves sit about twenty-five kilometres southeast of town, cut into a conglomerate cliff above a seasonal river. The rock is soft enough to carve with hand tools and dry enough that a cut chamber stays dry. The site faces south, so it takes sun without taking weather, and it lies on the route between the town and the passes — convenient for donors who wanted a cave but did not want to fund a whole monastery.

Tradition dates the first cutting to 366 AD, when a monk named Yuezun is said to have seen a vision of a thousand Buddhas in the cliff and opened the first chamber. Whatever the vision was, the practice took: by the time the site fell quiet, 735 caves had been carved, of which 492 carry painted walls. They span roughly a thousand years and a dozen political regimes, from the Northern Liang through the Tang, the Five Dynasties, the Western Xia and the Yuan.

Who paid, and what they bought

Caves were sponsored, not commissioned by a single court. Inscriptions name donors: officials, monks, local rulers, and merchant families who had done well on the road. A family could pay for a wall, a niche, or a single painted figure, and the donor's own portrait often appears in the mural, small and positioned close to the deity — a receipt in pigment.

The result is uneven in a way that is more interesting than a unified masterpiece would be. One cave may show Tang court costume at its most elaborate; the next, a provincial workshop's cheaper version of the same subject. The paintings are evidence of what people could afford, what they had seen, and which sutras were circulating, which is why art historians treat the site as an archive as much as a gallery.

Why the colours are still there

Most of the paint is mineral. Azurite gives blue, malachite green, cinnabar and red lead the reds, and gold leaf the highlights. These pigments do not fade the way modern dyes do, which is why a Tang wall can still look saturated from across a cave.

What has changed is chemistry. Lead white darkens to near-black over centuries, so faces that now read as grey or brown were originally pale. Copper pigments oxidise toward green or black. Cinnabar can darken under light. The murals are not simply older versions of what the painters saw; they are chemically altered versions, and conservators have to argue about how far to intervene.

Desert air did most of the preserving. Low humidity, no rain, darkness inside sealed chambers, and a dry climate that discourages mould all helped. The modern threat is different: moisture from breath, heat from bodies, and the slow abrasion of a place that is visited. That is why access is limited and why the cave environment is monitored rather than merely admired.

The room that was sealed

In 1900 a caretaker named Wang Yuanlu, clearing sand from a corridor, found a small chamber built behind one wall. Inside were tens of thousands of manuscripts, paintings and textiles, most of them dated between the fourth and eleventh centuries. The cache is usually called the library cave, and its contents include a printed copy of the Diamond Sutra bearing a date equivalent to 868 — commonly described as the oldest dated printed book known.

Why it was sealed is still argued. The likeliest reason is protection during a period of invasion, with the material simply never recovered by the people who hid it. What is not in doubt is the dispersal: explorers including Aurel Stein and Paul Pelliot removed large portions in the early 1900s, and the material is now divided mainly between London, Paris, St Petersburg and Beijing. The episode is a sore subject in China, and it is part of the site's history rather than a footnote to it.

Sand that makes a noise, water that refuses to be buried

The Mingsha dunes east of town are the other reason people come, and they are not a decorative backdrop to the caves; they are the same landscape doing what it does. The "singing" is a low hum produced when dry sand avalanches down a steep face, and the exact acoustics are still studied rather than settled.

Crescent Lake sits at the foot of the dunes in a wind shadow, which is why it has not been swallowed. It is spring-fed and has been dredged and managed in modern times; the romantic version of an untouched pool is less accurate than the engineering version. The shape is genuinely a crescent, and the reason it keeps that shape is that the wind deposits sand on one side and removes it from the other.

What happened when the road moved

The sea routes and later political shifts drained the overland trade. Dunhuang stopped being a doorway and became a provincial town at the end of a long corridor. The caves survived because the place became quiet — nobody had the money or the motive to rebuild the cliff — and because the dry air made neglect a form of conservation.

UNESCO inscribed the site in 1987. What a visitor sees now is a managed archaeological landscape: stabilised cliff faces, monitored caves, a museum that holds material the caves cannot safely display. The paintings are the point, but the reason they exist is the road, and the reason they lasted is the weather.

Sources

Other Places, Explained