China · North China

Datong: stone Buddhas on the old frontier

Buddhist cave carvings, the Hanging Temple and an easy rail link from Beijing: Datong is the northern door to Shanxi.

time needed
one to two nights
best time
April to May and September to October (going by Beijing, the nearest city with figures)
getting there
High-speed train from Beijing North or Qinghe to Datong South in under two hours
cost
Entry prices for the grottoes, the temple and the wall aren't published here; check before you go
A giant seated stone Buddha carved into the rock at the Yungang Grottoes in Datong, Shanxi

popularity22/100

Mentioned on 112 of the 2110 top-ranked search pages we read, in 1 of the 250 most-watched YouTube videos about China (585k views).

difficulty2/5 · easy-going

A fast train from Beijing, then a car or tour for the sights outside the city.

The northern door to Shanxi

Datong lies in the far north of Shanxi province, on a wide basin about 1,040 metres above sea level, with Inner Mongolia to the north and west and Hebei to the east. It is no small town: the 2020 census counted just over 3.1 million people across the city's territory, about 1.8 million of them in the built-up core.

Most visitors come for the Yungang Grottoes, where Buddhist figures are cut straight into the rock, and for the Hanging Temple, which tour programmes list among the city's highlights. Add the city wall, an old mosque and frontier forts in the countryside, and Datong easily fills a couple of days.

It is an easy hop from Beijing and sits well on a longer rail trip, which is why so many China itineraries put Datong and Pingyao side by side.

The Yungang Grottoes and the Hanging Temple

The grottoes are the reason Datong turns up on so many routes. Travel guides and tour operators keep naming Datong for its Buddhist caves and temples, and one guide dates the carving to more than 1,500 years ago. The image people carry home is a giant seated Buddha shaped out of the stone.

Expect company. One solo traveller who filmed her journey around China remembers the grottoes as much for the crowds as for the carvings, and puts them alongside the Forbidden City for the crush. Give yourself time, and check the current opening hours and fee before you go.

The Hanging Temple is the other name that keeps appearing in Datong programmes. One UK operator sells its stop here as the hanging temples of Datong, and a 15-day tour from Beijing to Shanghai pairs them with the old castles of Datong and Pingyao. Visiting times and prices aren't published here, so confirm them locally or with your tour.

In town: the city wall and the Grand Mosque

Datong's ancient city wall has been restored almost in full, and it is the easiest sight to fit in. One guide puts it about 25 minutes by car from Datong South station and suggests 20 to 30 minutes there, ideally after dark, when the lighting turns the wall gold and it photographs best.

The writer who described the restoration found the whole city changed on a third visit: roads widened or rebuilt, new apartment blocks and bridges, a long way from Datong's old reputation as a polluted coal town.

On Daxi Street in the centre, the Grand Mosque is counted as one of Shanxi's two well-known ancient mosques. One guide dates its founding to 628, under the Tang dynasty, with a rebuild in 1742 in the reign of the Qing emperor Qianlong. Its buildings blend classical Chinese architecture with Arabic decorative art. Check visiting arrangements before you go.

Day trips: frontier forts, the Great Wall and Yingxian

Datong is close to the old frontier, and the country around it shows that. Deshengbao, a fortress about an hour's drive from the city, is one guide's pick for frontier history without the crowds.

Another guide points out that the stretches of the Great Wall near Datong don't all match the brick-and-stone picture familiar from the sections outside Beijing, which is worth knowing before you set off.

Further out, the Yingxian Wooden Pagoda is the usual add-on. A Shanxi rail itinerary lists it as a day trip from Datong, and a second guide suggests folding it into a longer day out by car.

Getting there and moving on

Beijing is the usual starting point, roughly 350 to 400 kilometres away depending on who measures it. The fastest high-speed trains from Beijing North and Qinghe stations reach Datong South in under two hours. Older figures of six hours by train or five by road describe the slow trains and the drive; slow trains and buses still run, so compare timetables before you book.

One solo traveller was approached by unofficial taxi drivers at train stations in Datong, so be wary of anyone waving you towards their car.

Leaving is easy in two directions. A direct train links Datong South with Pingyao Gucheng, so you don't need to change at Taiyuan, and from Pingyao fast trains continue to Xi'an North for the Terracotta Army. Alternatively, a scenic-area bus runs from Datong South to the Mount Wutai visitor centre; there is no high-speed station at Mount Wutai, so the last leg is always by road.

When to go and how long to stay

In Beijing, the nearest big city with figures, April, May, September and October bring highs of about 18 to 28°C and only three to five rainy days a month. July and August are the wettest months, with 15 and 12 rainy days, and from December to January highs hover around 2 to 3°C with nights near -7°C. Datong sits higher, at about 1,040 metres, so treat these as a rough guide.

A Shanxi rail itinerary gives Datong two nights before moving on to Pingyao, while a UK operator's long tour stops for one. One night covers the grottoes and the wall; two leave room for the Hanging Temple, the mosque or a day out to Deshengbao or Yingxian.

watch before you go

sources and the facts we checked (31)
  • Datong is a prefecture-level city in northern Shanxi, in the Datong Basin at an elevation of 1,040 metres, bordering Inner Mongolia to the north and west and Hebei to the east. en.wikipedia.org
  • The 2020 census counted 3,105,591 people in Datong, 1,790,452 of them in the built-up area. en.wikipedia.org
  • Datong is in the far north, near the border with Inner Mongolia. tour-beijing.com
  • The Yungang Grottoes in Datong hold Buddhist cave art carved over 1,500 years ago. traveldepartment.co.uk one source; treat as a guide
  • Datong is known for its Buddhist grottoes and temples. chinatravel.com
  • A giant seated Buddha is a signature sight at the Yungang Grottoes. wayschina.com
  • A traveller found the Datong grottoes very crowded, comparing it with the Forbidden City. youtube.com one source; treat as a guide
  • A UK operator's China tour includes the Hanging Temples of Datong. wendywutours.co.uk
  • A 15-day tour from Beijing includes hanging temples and ancient castles in Datong and Pingyao. kimkim.com
  • Datong's ancient city wall has been restored almost entirely, and the city's roads, housing and bridges have been rebuilt, changing its image as a polluted coal town. tour-beijing.com one source; treat as a guide
  • The city wall is about a 25-minute drive from Datong South Station; 20 to 30 minutes is enough, and it is most photogenic at night in its golden light. chinahighlights.com one source; treat as a guide
  • Datong Grand Mosque, on Daxi Street in the city centre, is one of the two well-known ancient mosques in Shanxi. cits.net one source; treat as a guide
  • The Grand Mosque was originally built in 628 under the Tang dynasty and rebuilt in 1742 under the Qing emperor Qianlong. cits.net one source; treat as a guide
  • The mosque combines classical Chinese architecture with Arabic architectural art. cits.net one source; treat as a guide
  • Deshengbao fortress is about one hour by car from Datong and offers frontier history away from the crowds. chinahighlights.com one source; treat as a guide
  • Not all the stretches of the Great Wall near Datong are built of bricks and stones like those near Beijing. tour-beijing.com one source; treat as a guide
  • The Yingxian Wooden Pagoda can be visited as a day trip from Datong. wayschina.com
  • A guide recommends combining a drive from Datong with a stop at the Yingxian Wooden Pagoda. chinahighlights.com
  • Datong is about 350 km from Beijing. chinatrain12306.com one source; treat as a guide
  • Datong is approximately 400 km west of Beijing. tour-beijing.com one source; treat as a guide
  • The fastest high-speed trains from Qinghe and Beijing North reach Datong South in under 2 hours. wayschina.com
  • Datong was described as a 6-hour train ride or 5-hour drive from Beijing. tour-beijing.com one source; treat as a guide
  • Slow trains and buses also run between Beijing and Datong. chinatrain12306.com
  • A traveller met fake taxi drivers at train stations in Datong. youtube.com one source; treat as a guide
  • A direct train runs from Datong South to Pingyao Gucheng, with no change in Taiyuan. wayschina.com
  • High-speed trains run from Pingyao Gucheng to Xi'an North. wayschina.com
  • A scenic-area bus runs from Datong South station to the Mount Wutai visitor centre, and there is no high-speed station at Mount Wutai. wayschina.com
  • In Beijing, highs are 22, 28, 27 and 18°C in April, May, September and October, with 3 to 5 rainy days a month; July and August have 15 and 12 rainy days; December and January highs are 3 and 2°C with lows of -6 and -7°C. open-meteo.com
  • A Shanxi itinerary allows two nights in Datong before Pingyao. wayschina.com
  • A UK operator's China tour spends one night in Datong. wendywutours.co.uk
  • Datong can be visited as a short trip from Beijing. chinahighlights.com

Researched from 2110 web pages, 250 videos and 823 Instagram posts, written and checked by the wishyou.today team. Checked 2026-11-22. Prices and opening times change: check before you go.