
Hanging Temple (Xuankong Temple)
Xuán kōng sì
A wooden temple fixed halfway up a cliff in the Jinlong Gorge below Mount Heng.
Temples, Mount Heng, 2 h

Dàtóng, Shanxi, North China
Fifth-century cave Buddhas, a temple pinned to a cliff and a rebuilt Ming walled city.
Datong is a city in the far north of Shanxi, close to the borders of Inner Mongolia and Hebei. As Pingcheng it was the capital of the Northern Wei dynasty in the fifth century, and later a secondary capital of the Liao and Jin. The Yungang Grottoes west of the city date from the Northern Wei, and the Huayan and Shanhua temples inside the old city keep large halls from the Liao and Jin. The Ming city wall, about 7 km round, was restored from 2008 and now encloses a grid of old streets.
Yungang is one of China's three great Buddhist cave sites and a UNESCO World Heritage Site. Add the Hanging Temple, built into a cliff face near Mount Heng, and the 11th-century wooden pagoda at Yingxian, and Datong has some of the oldest religious buildings and carvings in the country. It is also a short high-speed train ride from Beijing, and its noodle and copper-hotpot cooking is a reason to stay for dinner.
Spend a morning among the cave Buddhas at Yungang, then walk the old city: the Liao-era halls of Huayan Temple, Shanhua Temple and the glazed Nine-Dragon Wall, finishing on the city wall at dusk. Give a day to the Hanging Temple and Mount Heng to the south-east, and another to the Yingxian Wooden Pagoda and the Datong Museum.
Day-by-day plan with a mapDatong in 3 daysYungang Grottoes and the walled old city, the Hanging Temple and Mount Heng, then the museum and the Yingxian Wooden Pagoda.See the plan, then make it your own →| Measure | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| High | -3° | 1° | 7° | 17° | 23° | 27° | 28° | 26° | 22° | 15° | 6° | -1° |
| Low | -17° | -13° | -6° | 2° | 8° | 13° | 16° | 15° | 9° | 2° | -7° | -14° |
| Rain | 2 | 3 | 10 | 18 | 30 | 49 | 101 | 83 | 51 | 18 | 8 | 2 |

Xuán kōng sì
A wooden temple fixed halfway up a cliff in the Jinlong Gorge below Mount Heng.
Temples, Mount Heng, 2 h

Yún gāng shí kū
Fifth-century Buddhist caves carved into a sandstone cliff west of the city.
Historical landmarks, Yungang, 3 h

Shàn huà sì
A large Liao and Jin temple near the south wall, quieter than Huayan.
Temples, Huayan and Shanhua temples, 1 h
Hidden gem
Yìng xiàn mù tǎ fó gōng sì shì jiā tǎ
China's oldest fully wooden pagoda, 67 m tall, built in 1056 in Ying County.
Historical landmarks, 1–2 h
Hidden gem
Dà tóng gǔ chéng qiáng
A 7.24 km Ming city wall, restored from 2008, with gate towers and barbicans.
Historical landmarks, The old city, 1–2 h

Dà tóng shì bó wù guǎn
The city's main history museum, strong on the Northern Wei, Liao and Jin.
Museums, Yudong New District, 2 h

Huá yán sì
A Liao-dynasty temple complex with one of China's two largest surviving Buddha halls.
Temples, Huayan and Shanhua temples, 1–2 h

Jiǔ lóng bì
A 45 m glazed-tile screen wall from the early Ming, the largest of its kind in China.
Historical landmarks, Heyang Street, 30 min
Lesser-known places our editors recommend.

Shàn huà sì
A large Liao and Jin temple near the south wall, quieter than Huayan.
Temples, Huayan and Shanhua temples, 1 h
Hidden gem
Yìng xiàn mù tǎ fó gōng sì shì jiā tǎ
China's oldest fully wooden pagoda, 67 m tall, built in 1056 in Ying County.
Historical landmarks, 1–2 h
Hidden gemThe walled grid inside the Ming wall. Four main streets meet at the Sipailou archways: Heyang Street to the east, Qingyuan Street to the west, Yongtai Street to the south and Wuding Street to the north.
The eastern main street of the old city, with the Nine-Dragon Wall in front of the old prince's mansion.
The south-western part of the old city, where the two great Liao and Jin temples stand.
The new district east of the Yu River, with the Datong Museum and Wenying Lake park, close to Datong South station.
The district about 16 km west of the city centre where the Yungang Grottoes are.
Datong has no metro. The old city is compact and walkable, and buses link it to Datong South station.
Huayan, Shanhua, the Nine-Dragon Wall and the wall are all within walking distance, and many local restaurants are here.
Watch out: About half an hour by bus from Datong South; check that guesthouses can register foreign guests.
The high-speed station and the bus hub for Yungang, Hunyuan and Ying County are here, and the Datong Museum is on the same road.
Nearest station: Datong South (大同南站)
Watch out: A newer, spread-out area; you will need buses or taxis to reach the old city.
North of the old city, with several bus lines into the centre.
Nearest station: Datong (大同站)
Watch out: High-speed trains from Beijing use Datong South, not this station.
Hotels register you with the police when you check in with your passport; staying in a private home works differently: see accommodation registration.
Dé wèi yáng zá guǎn jiào chǎng jiē diàn
A long-running breakfast shop for lamb offal soup inside the old city.
Local specialties, The old city, About ¥21 a head
Gǔ lóu dōng jiē lǎo huǒ guō gǔ lóu diàn
A Datong copper-hotpot restaurant on Drum Tower East Street.
Hotpot, The old city, About ¥99 a head
Qīng zhēn · lǎo dà tóng jiāng jì bīng wéi lú kǎo chuàn kāng lè jiē zǒng diàn
Halal barbecue on Kangle Street with smokeless table grills and freshly threaded skewers.
Local specialties, 康乐街, About ¥68 a head
Kǎi gē jiǔ lóu · yàn běi mín jiān cài huá běi xīng chéng diàn
Shanxi restaurant with a full range of northern Shanxi dishes, wok-fried to order.
Local specialties, 东关, About ¥61 a head
Lǎo chái xiāo miàn xiàng yáng lǐ diàn
Datong knife-cut noodle shop, its noodles shaved as evenly as willow leaves.
Local specialties, 百盛/沃尔玛, About ¥22 a head
Dòu miàn lǎo hào liú lǎo lao 003 bù
Three-generation bean-flour noodle shop pressing round, chewy noodles to order.
Local specialties, 平城区, About ¥19 a head
Noodle shops, snack stalls and everyday canteens. Prices are the average spend per person, mostly from Dianping’s Must-Eat list.
Xǐ jìn dào miàn guǎn huá yán sì guǎng chǎng diàn
Knife-cut noodle house by Huayan Temple Square, with generous bowls and old-style decor.
Local specialties, 仿古街, About ¥38 a head
Líng jìng xuán kōng
A mixed-reality headset tour of the Hanging Temple's interior, from the gorge floor.
Cultural tours, Mount Heng

Běi yuè héng shān
The Northern Peak of China's Five Great Mountains, with cliffside Taoist temples.
Hiking & outdoors, Mount Heng, 4 h
Most visitors arrive at Datong South (Datongnan) high-speed station, on the line from Beijing through Zhangjiakou; the fastest trains from Beijing North or Qinghe take a little under two hours. Datong South also has trains towards Taiyuan and Xi'an. The transport hub beside it runs buses to the old city, a shuttle to the Yungang Grottoes, bus 901 to Hunyuan (Hanging Temple) and bus 902 to Ying County. Datong Railway Station, just north of the old city, handles conventional trains, and Datong Yungang Airport is about 17 km east of the city.
Yungang and the Hanging Temple both sell tickets only through real-name advance booking, so book before you travel and carry the same passport you booked with. Climbing tickets for the Hanging Temple are capped and sell out fast; overseas visitors buy them through Trip.com. The city government's guide for foreign visitors says Visa, Mastercard and UnionPay cards work where the logo is shown, but set up a mobile payment app before you arrive.
Read the practical guide for payments, internet and trains.
Not yet verifiedFacts come from the sources below; this page hasn’t had a full editor review yet. Last updated 5 Dec 2026.