Sign In
Datong

China

Datong

For about a century, an obscure garrison town on the edge of the Mongolian steppe held the seat of imperial power over the whole of northern China. That accident of fifth-century politics is why Datong is on the map today: the Northern Wei rulers who governed from here as Pingcheng poured resources into carving Buddhas into a sandstone cliff outside the city, and the result, the Yungang Grottoes, is still what pulls most travellers off their Beijing itinerary for a day or two.

Datong's sights split into two trips. Inside the old walled town, now Pingcheng District, a half-day on foot covers the Ming-era Nine Dragon Wall, the Liao-and-Jin-dynasty Huayan Temple complex, and the rebuilt grey-brick wall that rings the historic core. The district has been heavily restored over the past decade, so expect a polished old city rather than weathered lanes, though the monuments themselves are genuine. The Yungang Grottoes are a separate outing, 16 km west in the district that shares their name. The Hanging Temple sits further out again, in Hunyuan County to the southeast, and the Yingxian Wooden Pagoda in Ying County to the south. Budget two or three days to see all four; with only one, do the old town in the morning and Yungang in the afternoon.

Yungang Grottoes giant Buddha in Datong

Yungang Grottoes giant Buddha in Datong

Best time to visit

Datong sits at just over 1,000 metres, so the seasons swing harder than in Beijing. January averages around -10C, and the cold settles in from December through February; summers stay mild and dry, rarely reaching Beijing's mugginess. May, June, September and early October give the most comfortable light for a day among the grottoes, without serious heat or cold. Spring can turn windy, with the odd dust-hazed day blowing off the Inner Mongolian plateau. A winter visit works fine too (the grottoes stay open and the crowds thin out), as long as you dress for it.

Getting there and around

High-speed trains from Beijing reach Datong South station in under two hours on the line that runs through Zhangjiakou; there are also direct trains from Taiyuan, the Shanxi capital. Datong South itself sits about 6 km from the old town: a short taxi or Didi ride covers it, or bus 61 if you'd rather save the fare and don't mind the extra time. There's no metro in Datong. Once you're inside the old town, the sights cluster close enough to walk between; everywhere else, it's taxis, ride-hailing or the city bus network. For Yungang specifically, public bus 603 runs directly from the old downtown station to the grottoes in about an hour, a cheap alternative to a taxi. Combining Yungang with the Hanging Temple in one day generally means hiring a car or joining a day tour, since the two sit in opposite directions from the city and public transport between them is impractical.

Datong temple roof detail with bell

Datong temple roof detail with bell

Booking the big sites

Both Yungang and the Hanging Temple now run on real-name, timed-entry booking, though the process looks different at each gate.

Yungang GrottoesHanging Temple
Booking windowOnline, up to 7 days ahead; same-day booking isn't offered (as of 2026)Online, real-name system; no fixed minimum lead time, but slots do sell out
Foreign visitor check-inPassport at Gate 3Usually in person at the ticket window with your passport, since the booking mini-program has a patchy record of accepting passport numbers
Reaching the siteWalk in from the ticket officeNo private cars at the temple itself: walk in on the pedestrian path, or park at the visitor centre and ride the shuttle for the last stretch

None of this costs much, but it takes planning. Reserve a few days out where you can, arrive early in the day, and expect slots to disappear fastest on weekends and around the May and October holiday weeks.

Where to stay

Most travellers base themselves inside or just outside the old-town wall, within walking distance of the Nine Dragon Wall and Huayan Temple. If you've got an early train out, a hotel near Datong South trades that walkability for a shorter run to the platform the next morning.

Top pick
Trip.com

Book hotels in Datong

Trip.com: English listings, old town or near the station

Some links are affiliate links; we may earn a commission at no extra cost to you.

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. The Hanging Temple itself has a specific birth date: tradition credits a monk named Liaoran with starting construction in 491, in the last years Pingcheng was still the Northern Wei capital, and the finished building mixes Buddhist, Daoist and Confucian shrines into one structure hung roughly 75 metres above the gorge floor. 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

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 shows 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 keep it to the two-day side trip from Beijing that most people manage.

Highlights

  • Yungang Grottoes: over 51,000 Buddhist figures cut into a sandstone cliff 16 km west of the old town, a UNESCO World Heritage Site
  • The Hanging Temple, begun in 491 AD and built into a cliff face near Mount Heng, mixing Buddhist, Daoist and Confucian shrines in one structure
  • The Ming-dynasty Nine Dragon Wall, the oldest and largest glazed dragon screen in China
  • A 7.24 km grey-brick wall that rings the restored old town in Pingcheng District
  • No metro in Datong: old-town sights are walkable, while Yungang and the Hanging Temple are taxi, bus or day-tour trips
  • Hearty Shanxi cuisine, from knife-cut noodles to yellow millet dishes
  • High-speed rail from Beijing into Datong South in under two hours

Travel Tips

Book both big sites before you arrive

Yungang takes online reservations up to seven days ahead and no longer offers same-day booking; the Hanging Temple also runs real-name entry. Foreign visitors typically check in with a passport, at Gate 3 for Yungang or in person at the ticket window for the Hanging Temple.

Expect a shuttle, not a drive, at the Hanging Temple

Private cars can't reach the temple itself. Walk in on the pedestrian path, or park at the visitor centre and ride the shuttle bus for the last stretch.

Pair Yungang and the Hanging Temple by car

They lie in opposite directions from the city, and public transport between them is impractical. A hired car or a day tour lets you combine both, plus the Yingxian Wooden Pagoda, in one day.

Dress for altitude and wind

At just over 1,000 metres, Datong is colder than Beijing for most of the year and noticeably so in winter, when January averages around -10C. Bring layers and a windproof shell in spring.

Allow a half day for the old town on foot

The Nine Dragon Wall, Huayan Temple and the city wall all sit inside Pingcheng District, walkable from the centre, so keep a half-day free to explore without a taxi.

Things to do in Datong

Suggested itineraries

Related Guides

More Destinations