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.