There is a city in northern China where you can stand beneath a 17-metre Buddha carved into sandstone 1,500 years ago in the morning, and by the afternoon walk the creaking wooden walkways of a temple bolted to a vertical cliff — a temple that has hung in the air since before the Tang dynasty. That city is Datong (大同), in Shanxi province, and it is the best two-hour trip from Beijing that almost no foreign visitor takes.
Datong was the capital of the Northern Wei dynasty in the fifth century, and it retains one of Asia's great Buddhist cave-art sites (the Yungang Grottoes, a UNESCO World Heritage Site) plus a building that regularly makes lists of the world's most extraordinary structures (the Hanging Temple). Both have hard booking rules that strand unprepared travellers at the gate — which is exactly what this guide exists to prevent.
We cover how to reach Datong from Beijing and Taiyuan, the two booking systems you must master (including the 2,475-ticket daily cap at the Hanging Temple), a realistic itinerary, autumn and Golden Week timing, what else to see in town, where to stay and eat, and the visa-free angle that makes Datong an easy add-on to a Beijing trip.
Two things have changed in Datong's favour for foreign travellers. First, in December 2024 China added Shanxi province to its 240-hour visa-free transit scheme, and the permitted travel area for Shanxi is specifically Taiyuan and Datong. In plain terms: if you qualify for the transit policy and fly into Taiyuan, you may travel to Datong and back without a visa. Then in August 2026 the scheme was expanded to 57 nationalities and 65 ports, so more passports qualify than ever.
Second, Datong has quietly become one of China's most talked-about domestic destinations. It is a natural "cool" summer city (average July temperature around 21°C), it is the acknowledged capital of China's surviving ancient timber architecture, and its fame was amplified worldwide by the video game Black Myth: Wukong, whose locations are heavily drawn from Shanxi. The result is a city that is now well known to Chinese travellers but still largely undiscovered by Western ones — which means the experience is superb and the English infrastructure is thin. Plan ahead and you will have the grottoes and the cliff temple almost to yourself (outside national holidays).
The Yungang Grottoes (云冈石窟) sit 16 km west of Datong's old city, cut into sandstone at the foot of the Wuzhou Mountains. There are 252 caves and more than 51,000 Buddhist statues, carved between roughly 460 and 525 AD, when Datong (then called Pingcheng) was the Northern Wei capital.
Since 1 January 2025, Yungang has been online, real-name booking only. The on-site ticket counters were abolished — not reduced, removed. Turning up without a booking means turning around. Tickets open up to seven days ahead and normally are not sold on the day.
| Detail | Yungang Grottoes |
|---|---|
| Peak season (April–October) | ¥120 adult; approx. ¥60 concession |
| Low season (November–March) | ¥100 |
| Opening hours | approx. 08:30–17:30, last entry 16:30 (confirm when booking) |
| Time needed | 3–4 hours — do not rush it |
| Electric cart on site | approx. ¥15 (worth it; the site is large) |
The unmissable moment is Cave 20's open-air seated Buddha, the emblem of Yungang: the cave roof has collapsed, leaving the giant figure exposed to the sky. Photographers say the light turns golden in the mid-afternoon. The Tan Yao Five Caves (16–20), carved on the orders of the monk Tan Yao, are the earliest and the reason art historians make the trip. Bring a guide or rent the audio guide — without context, "looking at rocks" undersells what you are seeing.
The Hanging Temple (悬空寺, Xuánkōng Sì) is 65–80 km southeast of Datong, in Hunyuan county, built into the flank of Cuiping Peak above the Jinlong Gorge at Mount Hengshan. It dates to about 491 AD — more than 1,500 years old — and is China's only surviving temple to combine Buddhism, Daoism and Confucianism under one roof, with the three founders sharing a single hall. It hangs roughly 50–58 metres above the gorge floor on timber beams set into the rock, without a single nail.
The price you read online is not the price. There are two tickets, and the site is deliberately structured so that many visitors discover the second one only when they reach the stairs:
The climbing ticket is capped at 2,475 per day (roughly 1,200 released online and 1,275 sold on site), and the cap is being reduced year on year for conservation. When the climbing tickets sell out, the ¥15 entry ticket usually has not — so people pay to stand below and look up. Decide in advance whether you are paying the ¥115.
Who should not climb: the walkways are narrow, steep and single-file, and the site restricts climbing for visitors with high blood pressure, heart conditions, a fear of heights or limited mobility, and for children under six. If you would rather not climb, the ¥15 entry is a defensible choice — you still get the best photograph.
Yungang and the Hanging Temple are on opposite sides of Datong, so doing both in one day means starting at Yungang when it opens and accepting a compressed afternoon. A direct shuttle runs from Yungang to the Hanging Temple (about ¥39 per person each way, booked via the "Datong Tourist Shuttle" mini-program); sit on the right for a view of the temple as you approach. Private cars cannot drive to the temple gate — you park at the Mount Hengshan Visitor Center and take the shuttle bus (¥20 round trip). Allow 1.5 hours driving each way from the city.
| Route | Duration | Typical fare |
|---|---|---|
| Beijing → Datong South (G-train) | 1h 45m – 2h 30m | ¥150–250 |
| Taiyuan → Datong | 1h – 1h 30m | ¥80–150 |
| Xi'an → Datong | 3–4h (often via Taiyuan) | ¥200–400 |
There are roughly 28 G-trains a day from Beijing to Datong South, so the city is genuinely a day-trip or overnight add-on to a Beijing itinerary. From Datong South station, the K1 bus reaches the Yungang Grottoes for about ¥2 (40 minutes), or a taxi costs ¥30–50. There is no metro in Datong; taxis start at about ¥7 and DiDi (ride-hailing) works well. Within the old city, most sights are walkable.
Two nights is the sweet spot. Three if you add the Yingxian Wooden Pagoda and the volcanoes.
Arrive from Beijing by late morning. Afternoon: Huayan Temple in the old city — home to the largest surviving Liao-dynasty timber hall in China and a set of Liao clay sculptures that are why art historians come to Datong at all. Then walk or cycle the free Datong City Wall at dusk for sunset over the old town.
Yungang at opening (booked ahead), 3–4 hours. Take the shuttle to the Hanging Temple for the afternoon, then return for the evening train — or stay a second night and take it slower. If the one-day double is too compressed, split it: Yungang on Day 2, Hanging Temple + Yingxian Wooden Pagoda (the world's tallest timber pagoda, no nails, leaning gently) on Day 3.
Morning at the Yingxian Wooden Pagoda and the Pure Land Temple next door, then back to Datong and out. In the old city, the Nine-Dragon Wall, Shanhua Temple, the Confucian and Daoist temples and the Datong Museum (free, closed Mondays) fill any spare hours.
| Sight | Ticket (approx.) | Notes |
|---|---|---|
| Huayan Temple | ¥50 peak | Liao timber hall; the "Oriental Venus" clay figures; allow 1.5h |
| Shanhua Temple | ¥40 | Liao/Jin temple, generous layout, rarely busy |
| Datong City Wall | Free | Cycle the 6 km loop at sunset; rent a bike on site |
| Nine-Dragon Wall | Free/small fee | Largest Ming glazed-screen wall in China; 15–20 min |
| Datong Museum | Free (reserve) | Northern Wei artefacts; closed Mondays |
| Yingxian Wooden Pagoda | ¥50 | 67 m, all wood, no nails, ~1.5h from Datong |
| Mount Hengshan | ¥45 | One of the Five Great Peaks; 3–4h hike; cable car extra |
| Datong Volcano Group / Earth Forest | ¥30 / ¥50 | Optional half-day add-ons outside the city |
Mid-September to late October is the best window. Days are crisp and dry, the old-city ginkgo turns gold, and the light is superb for photography. Datong sits on the northern plateau, so nights are cold even in early autumn — pack layers year-round and expect a big temperature swing.
On Golden Week (1–7 October): Datong is one of the few headline destinations that absorbs China's national holiday reasonably well — considerably better than Xi'an, Beijing or Zhangjiajie — but the Hanging Temple's 2,475-ticket cap is still the bottleneck, and trains and hotels from Beijing spike. If your dates are fixed to the holiday, book the climbing ticket the moment the window opens and lock your train and hotel first. If your dates are flexible, the second and third weeks of October are the sweet spot: autumn weather, far fewer domestic crowds, and easier bookings. Winter (November–February) is cold but peaceful, and the grottoes take on a stark, low-season beauty at lower prices.
Stay inside the old city if you can — courtyard inns and boutique hotels run roughly ¥200–700 a night, and everything in the walled town is walkable. Avoid the new district outside the wall unless you are driving; it is far from the sights and the night market.
Datong is, unapologetically, a carbohydrate paradise. Do not leave without trying: