Sixteen kilometres west of Datong, at the southern foot of Wuzhou mountain.
The rock is sandstone, yellow brown, banded in layers like compressed sand. At the foot of the cliff an old road runs west, past the pass, out toward the grassland.
The cliff face is full of caves.
One kilometre from end to end, more than two hundred openings, fifty one thousand images. The largest is seventeen metres. The smallest would fit in a hand. Standing at the bottom and looking up, the faces have been half eaten by the stone, and what is left is outline.
All of it was cut more than fifteen hundred years ago.
At the time this city was called Pingcheng and it was the capital of the Northern Wei. From Pingcheng a road went west through the Wuzhou pass to the grassland, and beyond that to the oases. It carried horses, furs, glass, gold and silver work, and it carried people and their gods.
The caves were cut beside that road, where every traveller would see them.
A Horse Recognized Him
The man who started it was a monk named Tanyao.
He came from Liangzhou, which was then the Buddhist centre of the north. Monks, translators and image makers were gathered there, and caves had been cut in the hills outside the city for decades. The rulers of that state treated statue making as state business.
In 439 the Northern Wei took Liangzhou.
After the city fell, more than thirty thousand households were moved to Pingcheng. Among them were monks, painters, stonemasons, and men who knew how to mix pigment.
Tanyao was one of them.
The craft of a capital had moved house, along with the people who owned it.
The story of how he met the emperor is worth telling, with the warning that it comes from a Buddhist source.
The emperor was riding out, the story goes, and his horse stopped in front of Tanyao and took hold of the corner of his robe with its teeth and would not let go. The emperor read this as a sign. From then on the monk had his attention.
What is certain is that Tanyao was later made the official in charge of the clergy, and that he used the position.
Seven Years After the Persecution
To understand why he cut caves, count back seven years.
In 446 the Northern Wei emperor issued an edict.
The background was a quarrel between religions. The emperor favoured Daoism. His chief minister was a Daoist. A Daoist master was in the court. Buddhism and Daoism had been competing for position for years, and the competition had reached the point where a single incident could decide it.
The incident was a monastery in the old capital. Soldiers searching it found weapons, then equipment for brewing, then valuables hidden in a sealed room. The emperor ordered the monks of the city killed and the scriptures and images burned.
The order was then applied to the whole state. The histories say that wherever the teaching had reached, the temples and the towers came down.
It was thorough. Buildings were pulled apart. Sutras went into the fire. Bronze images were melted for coin. Clay images were smashed and the rubble spread on fields. Monks were killed, or fled, or returned to lay life. Within a few years the Buddhist church in the north had almost ceased to exist.
One place survived: Liangzhou, which was not yet in Northern Wei hands.
When that city fell in 439, its monks, its books and its craftsmen were moved east to Pingcheng, and what had been preserved came with them.
Tanyao arrived carrying it.
Four years after the persecution, the emperor died.
A year before his own death, his Daoist chief minister had fallen. He had compiled a history of the dynasty and had the early chapters carved on stone tablets beside a road, where anyone could read them. The noble families were furious; the old stories were not flattering. The emperor ordered an investigation, and the minister was executed with his whole clan.
The man who had pushed hardest for one religion died because of a history he had written himself.
Two years later the next emperor took the throne and restored the Buddhist church.
Restoring it did not mean rebuilding the halls.
After 452 the court needed something that would tell every person who saw it that the faith was back, and that it was now a matter of state.
Tanyao’s proposal was to cut the mountain. In 460 he asked for permission to open five caves in the cliff at Wuzhou, each with a great image. Permission was given.
The Buddha Is the Emperor
Those five caves are numbered 16 to 20 today, and they are known together as the Tanyao caves.
Their shape is unlike anything cut later. The plan is oval, the ceiling is a dome, and the whole interior resembles a felt tent of the kind the steppe peoples lived in. The shape alone tells you where the makers came from. The Tuoba clan of the Northern Wei came off the grassland, and a domed tent was the house they knew.
Each cave holds one main image, with a thousand small Buddhas on the walls.
The five great images stand for five men: five emperors of the dynasty, from the founder to the one then on the throne.
The Buddha was the emperor.
This was not a metaphor at the time. It was policy. Northern Wei clergy said plainly that to bow to the emperor was to worship the Buddha. The reigning emperor was the Tathagata of the present age, and the two acts were the same act.
So the caves were not an offering. They were a statement of legitimacy.
They were cut fast. Five caves in six years, 460 to 465.
That speed tells you two things. There were enough men. And the work was an order.
The main images run from thirteen metres to seventeen, each seated against the rear wall with its head almost touching the vault.
The method was orderly. A window was opened first, high on the cliff, and the work went downward from the ceiling. Nothing was cut to final size at once. A layer of stone was left in place, the mass was shaped, and only then was it worked back. The detail came last: pleats, fingers, lotus petals, flying figures.
Sandstone is soft and takes a chisel well, which is why the detail at Yungang is finer than at Longmen. Sandstone also drinks water, which is why Yungang is decaying faster.

The Nose of the Great Buddha
Cave 20 is the face of the whole site.
The image is 13.7 metres, seated with legs crossed, hands resting palm up in the gesture of meditation. Broad shoulders, deep chest, round face, a nose that runs straight and high, and eye sockets set deep. The robe leaves the right shoulder bare, and the folds cling to the body in lines, as if the cloth were wet.
There used to be a wall in front of it.
Around 512 an earthquake struck the region north of the site, strong enough to bring down rock across a wide area. The front wall of cave 20 collapsed, and the main image has been outdoors ever since.
The collapse is what made it famous. Every photograph of Yungang is this Buddha, sitting in the open.
The nose problem comes from the same place.
Sandstone fears water, wind and frost. Snowmelt works into a crack, freezes at night, thaws by day, and pushes the stone apart a little further each year. Noses, ears and the corners of robes go first.
The great Buddha still has a nose. It is lower and rounder than it was.
Cave 18 holds a standing image 15.5 metres high, and its robe is covered with small Buddhas, a thousand of them on one garment. Cave 5 holds an image of seventeen metres, the largest at the site.
Pingcheng at that time was a new capital with a mixed population, and the court had been moving people into it for decades: conquered households, craftsmen, merchants, monks. The northern trade road ended at its gates. A project on this scale needed a labour force that a single city could not supply, and the record suggests the work was done by conscripted men from several provinces, working in shifts, fed by the state.
Nobody recorded their names.
The number fifty one thousand was arrived at by counting. A full survey in the 1950s numbered every cave and niche: forty five major caves, more than two hundred and fifty openings, over fifty one thousand images. Scholars still cite those numbers.
After the Capital Moved
By 465 the five caves were finished, and the best period began.
Between 465 and 494 another twelve large caves were opened, thirty years of work paid for by the court of the empress dowager and the young emperor. The state was rich, and the carving shows it.
The shape changed. The oval cave became a square two room cave, and new types appeared: the hall cave, and the cave with a pillar in the centre, square, with niches on all four faces.
Cave 5 and cave 6 were cut as a pair, side by side, separated by a single wall. Pairs like this are read as a reference to the two rulers then governing together, the empress dowager and her grandson.
Around the pillar in cave 6 runs a set of reliefs of the Buddha’s life, from the birth under the tree to the death in the grove, more than thirty scenes, one after another, spiralling upward. The pillar itself rises the full height of the chamber, and the carving on it is undercut so deeply that figures stand clear of the stone. Walk once around the pillar and you have seen the whole biography.
This is a different use of a cave from the earlier ones. The five Tanyao caves put one enormous figure in front of you and leave you outside it, looking up. The middle period caves are built to be entered and read, wall by wall, like a building with a programme.
The images changed too. The early faces are broad, the eyes deep, the shoulders heavy. The later ones are slender, the features fine, the robe a wide sleeved Chinese garment falling in layered folds.
That is the sinicisation of the dynasty, cut in stone.
In 494 the court moved the capital to Luoyang. Imperial work at Yungang stopped. No more great caves were opened.
The cutting did not stop. Small votive niches went on being carved into the cliff by private donors until about 525. Counted end to end, sixty five years.
A geographer of the period, Li Daoyuan, described what he saw there: the mountain cut open, the rock built upon, the true faces immense, a thing rare in the world, halls in the cliffs and water in the courtyards, temple roofs within sight of one another.
He was writing while they were still carving.
There is one more thing to say about those faces.
The deep eyes and high nose of the early images are not local.
The source is further west. The Buddha image first took shape in Gandhara, in the northwest of the Indian subcontinent, a region that had been ruled by Greek speaking kings for centuries. Local sculptors applied the methods of Greek sculpture to the Buddha: an Apollo profile, wavy hair, drapery studied from life.
That kind of image travelled east along the trade roads, through Central Asia and the oasis cities and Liangzhou, and arrived at Pingcheng. The five great faces in the Tanyao caves have Greek cousins.
The shape of an eye travelled several thousand miles and came to rest on a band of sandstone.
After Yungang, the method travelled with the people who knew it. Longmen was opened the year after the capital moved. The rock there is limestone, harder and finer, which holds denser carving, so the faces at Longmen are thinner and the robes more elaborate. After that came the Tang caves at Dunhuang, the great Buddhas of Sichuan, the cliff carvings in a dozen provinces.
A line that starts at Wuzhou mountain and runs for centuries.
In 1961 the site was listed in the first national batch of protected monuments. In 2001 it went on the World Heritage list.
The engineering since then has been continuous. Drainage was cut behind the cliff to take water away from the rock. Cracks were grouted and bolted. A section of highway that ran directly under the caves was moved further off, because the coal trucks shook the cliff and their dust settled on the stone. Teams from the cave conservation institutes at Dunhuang and Longmen have worked here. The monitoring has never stopped.
The monitoring keeps returning the same finding. The stone is still going.
Visitors today stand behind a low wall in front of cave 20 and take photographs. Inside the caves, flash is forbidden, because light damages stone as surely as water does.
The Buddha sits with its hands still on its knees.
Fifteen hundred years of wind come in through the pass at Wuzhou, and the first thing they touch is that face.