On this page (7)
The Hanging Temple (Xuankong Si, 悬空寺) is a group of about 40 small halls and pavilions built into a sheer cliff on Mount Heng in northern Shanxi, about 75 m above the ground by the usual count. Tradition dates it to 491, making it some 1,500 years old, and it is rare in housing Buddhist, Taoist and Confucian shrines together. It lies near Hunyuan, about 65 km southeast of Datong, and climbing inside needs a ¥100 timed ticket, capped at 2,475 a day in 2026.
Most visitors pair it with the Yungang Grottoes, Datong’s 1,500-year-old Buddhist cave temples, for one or two days from Beijing, which is under 2 hours away by high-speed train. Ticket rules here change often, so the details below, checked in late October 2026, are worth confirming before you go.
What is the Hanging Temple?
The temple sits on the west side of the Jinxia Gorge, below Cuifeng Peak, part of Mount Heng, the northern of China’s Five Great Mountains. Its founding is credited to a monk called Liaoran in 491, under the Northern Wei dynasty, whose capital was at Datong. Chinese official sources are more cautious and say “more than 1,400 years”. The wooden halls you see now were rebuilt in the Ming and Qing dynasties.
Its fame rests on how it is built. The halls stand on wooden beams slotted into holes cut in the cliff, with the main support hidden in the rock, and iron chains and beams as reinforcement. The thin poles underneath look as though they are doing the work, which is part of the illusion. The overhang of the cliff above shelters the timber from rain and sun, one reason it has survived.
Inside, small shrines are linked by narrow walkways, stairs and bridges. The best known is the Hall of the Three Religions, where Shakyamuni, Laozi and Confucius sit side by side, reflecting the Ming and Qing idea that the three teachings were one.
Where is the Hanging Temple?
The Hanging Temple is in Hunyuan County, part of Datong prefecture, a few kilometers south of Hunyuan town. The closest big rail station is Datong South, about an hour away by car.
From the visitor center, a scenic-area bus takes about 8 minutes to the temple and costs ¥20. You can also see the whole temple from the path and bridge across the gorge, which many people find is the best view anyway.
Most visitors hire a car and driver from Datong or join a day tour that also includes Yungang. Allow half a day for the round trip from Datong, longer if you queue for a climbing ticket.
How do Hanging Temple tickets work?
There are two tickets. The cheap one lets you into the scenic area to see the temple from the valley; the expensive one, the climbing ticket (登临票), lets you walk through the halls on the cliff.
| Ticket | Price | Notes |
|---|---|---|
| Scenic area entry | ¥15 | View from the gorge |
| Shuttle bus | ¥20 | Visitor center to temple |
| Climbing ticket | ¥100 | Timed, capped daily, real-name |
From 1 April 2026, the climbing ticket has been capped at 2,475 a day, a number the scenic area says it will cut each year, according to Shanxi News Network. Reservations have been required since 2023. Of the daily total, 1,200 are sold online, up to seven days ahead, and 1,275 at the site on the day, in a morning and an afternoon batch. Morning sales open half an hour before opening, and afternoon sales at 12:00.
Two problems for foreign visitors:
- Online booking is hard without Chinese ID. SoraNews24, writing in October 2026, found that advance booking was open only to Chinese residents, leaving foreigners to queue for the on-site batches.
- The on-site batches sell fast. During the May Day holiday the morning batch of about 600 sold out within 10 minutes, with people queuing from 5 am, the Beijing News reported. Touts resold ¥100 tickets for ¥200 or more. Buy only through the official channels.
In practice, arrive well before opening for the morning batch, or be in line well before noon for the afternoon one, and avoid weekends and Chinese holidays. If you cannot get a climbing ticket, the view from the valley is still remarkable, and a mixed-reality experience (灵境悬空) below the temple shows the interior through a headset.
Opening hours vary by season: about 08:00–18:00 from May to September and 08:00–16:30 from November to February, with longer hours on holidays.
What is it like inside the Hanging Temple?
Tight and high. The walkways are narrow, often single file, and the railings are about waist height above a long drop. Visitors have reported that photography inside the halls was not allowed, and it is a religious site, so follow the signs on the day.
If you are uneasy with heights, Chinese guides advise against climbing; the view from the gorge is arguably the better one anyway. Families with small children should think twice too: the stairs are steep and crowded on busy days.
What are the Yungang Grottoes?
The Yungang Grottoes, about 16 km west of central Datong, are the other reason to come. UNESCO listed them in 2001: 252 caves and niches holding about 51,000 statues, carved along about 1 km of sandstone cliff between the mid-5th and early 6th centuries, when Datong was the Northern Wei capital. Together with the Longmen Grottoes at Luoyang, carved after the court moved south, they are the high point of early Chinese Buddhist sculpture.
The highlights:
- Caves 16–20, the Tan Yao caves. The first five, made under the monk Tan Yao, with colossal Buddhas.
- Cave 20. The open-air Great Buddha, about 13.7 m tall, the image most people know from photos.
- Cave 5. The tallest statue on the site, about 17 m.
- Cave 6. Walls carved with more than 30 relief panels on the life of the Buddha.
Photography is not allowed inside the caves. Allow 2–3 hours.
Tickets and booking. ¥120 from 1 April to 31 October and ¥100 from 1 November to 31 March, according to 2026 listings. You must book online, under your real name, one to seven days ahead, through the official Yungang WeChat mini-programs or platforms such as Trip.com; same-day tickets are no longer sold at the gate. From 8 October 2026 the site is open 08:30–16:30. City bus 3 runs to the entrance, or it is about 40 minutes by car.
Datong old city and its walls
Datong itself has a walled old town, rebuilt in the 2010s under the then mayor Geng Yanbo, a project that displaced a very large number of residents and remains controversial. The city was walled in 1372 on older foundations, and the rebuilt wall runs 7.24 km around a grid of streets meeting at the Four-Archway crossing.
You can walk or cycle sections of the top; Lonely Planet lists bike hire at ¥50 and an electric buggy at ¥30, and you will need your passport. The towers are lit at night, which is the best time to go. North of the rebuilt circuit, a stretch of the original earthen wall survives.
Inside the walls, the Huayan Temple and the Nine Dragon Screen are older than the rebuilt streets around them and worth an hour or two. Huayan Temple opens 08:30–17:30 from April to October and 08:30–17:00 in winter.
A 1–2 day Datong plan from Beijing
High-speed trains from Beijing North or Qinghe reach Datong South in 1 hour 40 minutes on the fastest services and up to about 2.5 hours on others, with about 45 a day and second class at roughly ¥145–170.
Two days (recommended).
- Day 1: An early train from Beijing, then straight to the Hanging Temple by car to try for the afternoon climbing batch. Back to Datong for the evening, and walk the city wall at dusk.
- Day 2: Yungang Grottoes when they open, booked in advance. Huayan Temple in the afternoon, then the evening train back to Beijing or south to Pingyao, about 2 hours 15 minutes to 3 hours 40 minutes from Datong South.
One day. Take the first train, hire a car at Datong South for the day, and do the Hanging Temple in the morning and Yungang in the afternoon, which means booking Yungang a day ahead and gambling on an on-site climbing ticket. It is a very long day and leaves no slack for queues, so most people who try it see the Hanging Temple from the valley only.
Weekdays outside Chinese school and public holidays give the best chance of a climbing ticket without a long queue. A Hosted China host can arrange the car, the Yungang booking and an early start at the Hanging Temple if you would like it planned for you.



