Hosted China

Blog · Sights

Hanging Temple, Datong: tickets, climbing rules and Yungang

The Hanging Temple (Xuankong Si) is a cliffside temple of about 40 halls on Mount Heng, near Hunyuan and about 65 km southeast of Datong, said to date from 491 and shared by Buddhism, Taoism and Confucianism. Climbing into it needs a ¥100 timed ticket capped at 2,475 a day in 2026, and it pairs with the Yungang Grottoes for a one- or two-day trip from Beijing.

Published 1 November 2026 · facts checked 1 November 2026

The wooden halls of the Hanging Temple fixed to a sheer cliff face near Datong in Shanxi
On this page (7)
  1. What is the Hanging Temple?
  2. Where is the Hanging Temple?
  3. How do Hanging Temple tickets work?
  4. What is it like inside the Hanging Temple?
  5. What are the Yungang Grottoes?
  6. Datong old city and its walls
  7. A 1–2 day Datong plan from Beijing

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:

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:

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).

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.

Questions

How old is the Hanging Temple?

Tradition dates its founding to 491, under the Northern Wei, which makes it about 1,500 years old; some official sources say more than 1,400 years. The buildings you see today were rebuilt in the Ming and Qing dynasties.

How is the Hanging Temple held up?

Its halls rest on wooden beams set into holes cut in the cliff, with the main support hidden inside the rock. The thin posts underneath, which look as if they hold it up, carry much less of the load than they appear to.

Can you go inside the Hanging Temple?

Yes, with a ¥100 climbing ticket on top of the ¥15 entry. Numbers are capped each day, half the tickets are sold online up to seven days ahead and half at the site on the day, and the walkways are narrow with waist-high railings.

How far is the Hanging Temple from Datong?

About 65 km, or roughly an hour by car from Datong South station. There is no direct train, so most visitors hire a car or join a day tour that also covers the Yungang Grottoes.

Can you visit the Hanging Temple as a day trip from Beijing?

It is possible but long: about 2 hours by high-speed train to Datong, then an hour each way by road. Most people stay a night in Datong and add the Yungang Grottoes.

How much are Yungang Grottoes tickets?

¥120 from April to October and ¥100 from November to March, booked online under your real name one to seven days ahead. The site no longer sells same-day tickets at the gate.

Which religions share the Hanging Temple?

Buddhism, Taoism and Confucianism. Its Hall of the Three Religions has statues of the Buddha, Laozi and Confucius side by side.

More from the blog

Stilted wooden houses and a pagoda reflected in the Tuojiang River at Fenghuang Ancient Town

Leave it to a host

A host who lives in China can plan the days, book the trains and tickets, and meet you on arrival. Tell us your dates and you get a day-by-day plan and a price within 24 hours.

Plan your trip

Plan your trip

Tell us where and when. A host who lives there replies within 24 hours with a day-by-day plan and a price. No payment now.

Which cities? Tap them in the order you'd like to visit
What should we arrange? optional
What matters most? optional