
China
Datong
Datong sits in the far north of Shanxi Province, about 350 km west of Beijing on the edge of the Inner Mongolian plateau. For roughly a century it was Pingcheng, capital of the Northern Wei dynasty (398–494 AD), and that single fact explains most of what makes the city worth a detour: it was here, under imperial patronage, that artisans began carving the colossal Buddhas of the Yungang Grottoes. Later the city served as a western capital for the Liao and Jin dynasties, leaving behind timber halls and temples that survived where most of China's wooden architecture did not.

Yungang Grottoes giant Buddha in Datong
Most travellers come for two or three days and build the trip around four landmarks: the Yungang Grottoes, the cliffside Hanging Temple an hour to the southeast, the Ming-era Nine Dragon Wall, and the rebuilt grey-brick city wall that now rings the old town. The historic core has been heavily restored over the past decade, so expect a polished version of an old city rather than weathered lanes, but the major monuments themselves are genuine and remarkable.
Best time to visit
Datong sits at around 1,000 metres, so summers are mild and dry while winters are long and cold, often dropping well below freezing from December to February. May, June, September and early October are the most comfortable windows. Spring can be windy with the occasional dust day blowing in off the plateau. If you visit in winter, the grottoes stay open but bring serious layers.
Getting there and around
High-speed trains link Beijing and Datong in roughly two hours, which makes a Datong add-on easy for anyone already spending time in the capital. There are also direct trains from Taiyuan, the Shanxi provincial capital. Within the city, the old-town sights cluster within walking distance of each other, but Yungang (16 km west) and the Hanging Temple (about 65 km southeast, near Hunyuan) need a taxi, a day tour, or local buses, so plan those as half-day or full-day outings.

Datong temple roof detail with bell
A capital that carved its faith in stone
To understand Datong, it helps to know why a remote frontier town once held imperial power. The Northern Wei were a Xianbei people who unified northern China in the fifth century and ruled from Pingcheng before moving the capital to Luoyang in 494. During those decades the court embraced Buddhism as a unifying state religion, and the result was Yungang: more than 250 caves and niches holding over 51,000 figures, from the 17-metre seated Buddha of Cave 20 to thumb-sized carvings packed across the walls. The early caves show clear Central Asian and Indian influence, a reminder that Datong stood on the trade routes feeding into the Silk Road.
Beyond the headline sights
The four big landmarks anchor any visit, but a slower trip leaves room for more. Inside the old town, the Huayan Temple complex preserves a Liao-dynasty hall from 1038 that is one of the largest surviving single-storey wooden Buddhist halls in China, with painted clay statues that have stood for nearly a thousand years. About 75 km south, the Yingxian Wooden Pagoda, built in 1056, is the oldest and tallest fully wooden pagoda still standing anywhere, raised without a single nail. Travellers with a third day often pair it with the Hanging Temple, since the two sit roughly on the same road south of the city.

Painted temple mural in Datong
The food leans hearty and northern: hand-pulled noodles, knife-cut noodles (dao xiao mian, a Shanxi signature shaved straight off the dough into boiling water), shaomai dumplings, and yellow millet dishes. Aged Shanxi vinegar sits on every table and turns up in the local cooking far more than soy sauce does. Pair the city with Pingyao to the south for a full Shanxi heritage loop, or treat it as a two-day side trip from Beijing.
Plan ahead for the grottoes and the Hanging Temple, both of which now require advance online reservation and cap daily visitor numbers. Booking a day or two early, especially on weekends and during the May and October holidays, saves you from arriving to a sold-out gate.
Highlights
- Yungang Grottoes: over 51,000 Buddhist statues carved into sandstone cliffs, a UNESCO World Heritage Site
- The Hanging Temple, a 1,500-year-old monastery suspended on a cliff face near Mount Heng
- The Ming-dynasty Nine Dragon Wall, the oldest and largest glazed dragon screen in China
- A 7.24 km grey-brick city wall encircling the restored old town
- Hearty Shanxi cuisine, from knife-cut noodles to yellow millet dishes
- Easy two-hour high-speed train from Beijing
Travel Tips
Book the big sites in advance
Yungang Grottoes and the Hanging Temple both require online real-name reservation and cap daily numbers. Book a day or two ahead, especially on weekends and the May and October holidays.
Pair Yungang and the Hanging Temple by car
They lie in opposite directions from the city. A hired car or a day tour lets you combine both, plus the wooden Yingxian Pagoda, in one full day.
Dress for altitude and wind
At about 1,000 metres the city is cooler than Beijing year-round and noticeably colder in winter. Bring layers and a windproof outer shell in spring.
Allow time for the old town on foot
The Nine Dragon Wall, Huayan Temple and the city wall are all walkable from the centre, so keep a half-day free to explore on foot.

















