This page is archived and no longer updated — see the current guide: See the current guide

A 40-room temple built into a near-vertical cliff 75 m above a valley at Mount Heng's foot, its Buddhist, Taoist and Confucian halls side by side since 491 AD.



Quick Answer
Is Hanging Temple (Xuankong Temple) worth visiting?
A 1,500-year-old temple fused into a sheer cliff face 75 meters above the ground — the only temple in China combining Buddhist, Taoist, and Confucian halls. ¥130. 1–1.5 hours.
| Ticket | ¥130 (as of June 2026). Entry to the temple ¥100 + park grounds ¥30 = ¥130 combined. Climbing the temple interior costs ¥100 of that total; the ¥30 park grounds ticket lets you see it from below only. |
|---|---|
| Hours | 8:00–17:00 (Mar–Oct), 8:30–16:30 (Nov–Feb). |
| Recommended duration | 1–1.5 hours. The temple interior circuit takes 30–45 minutes; the rest is photography from the valley floor. |
| Best time to visit | May, September, October — clear skies, mild temperatures. Mornings (8:00–9:30 AM) for the shortest queue to climb the temple interior. Avoid winter (icy paths, temple may close in snow) and Chinese holidays (2+ hour queue to climb). |
| How to get there | 75 km southeast of Datong. No direct public bus. Options: (1) DiDi from Datong (1.5 hours, ¥200–300 one-way), (2) Tourist bus from Datong bus station (2 hours, ¥40, departs 7:30 AM, returns 14:00 — tight), (3) Private car hire for the day (¥400–500, covers Yungang + Hanging Temple). |
| English signage | Partial |
| Wheelchair accessible | No |
| Built | 491 AD (Northern Wei Dynasty) |
| Height | 75 m above the valley floor |
| Support system | Oak crossbeams in cliff — vertical pillars are decorative |
| Three teachings | Buddhism, Taoism, Confucianism in one temple |
| Rooms | 40 halls and pavilions across 3 levels |
The temple is smaller than photos suggest — a 40-room structure clinging to the cliff like a wooden wasp's nest — but the experience of climbing it is unforgettable. The walkways are narrow (one person wide in places), the railings are knee-height, and looking down through the gaps in the wooden floorboards at the valley floor 75 meters below produces a genuine adrenaline response. If you have any fear of heights, the interior circuit will test you. The temple's structural secret is revealed on close inspection: the load-bearing crossbeams are driven deep into the cliff rock; the vertical pillars visible from below are loose and can be wobbled by hand — they are essentially cosmetic.
Inside, the temple is arranged vertically across three levels. The lowest level has Taoist halls, the middle houses Buddhist shrines, and the top level holds a Confucian hall with statues of Confucius, Mencius, and their disciples. The three teachings coexist here in a way that would have been politically radical in other periods — but the Northern Wei was a multi-ethnic, multi-faith state, and the Hanging Temple's syncretism reflects that. The highest hall is 90 meters above the river, and the view down the valley toward Hengshan mountain is worth every nerve-wracking step.
From Datong: take the tourist bus from Datong bus station (大同汽车站, near the train station) — departs 7:30 AM, arrives ~9:30 AM, returns at 14:00. Fare ¥40 one-way. This is tight (2.5 hours on site, barely enough if you queue for the interior climb). Better option: DiDi for the day (¥400–500) covering Yungang Grottoes in the morning and Hanging Temple in the afternoon. The driver will wait at each site. From Datong South HSR station: DiDi ¥250–300 one-way, 1.5 hours.
Yes — the temple has been reinforced multiple times (most recently in the 2010s) and undergoes annual safety inspections. The walkway railings are solid, though low by Western standards. The floorboards creak and there are visible gaps between planks, which is unnerving but not dangerous. Thousands of visitors climb it daily. If you have a severe fear of heights, stay on the valley floor — the view is still impressive.
Oak crossbeams (hengliang, 横梁) are driven horizontally into chiseled holes in the sandstone cliff. The temple's weight rests on these beams, cantilevered outward. The vertical pillars visible from below carry almost no load — they were added centuries later for psychological comfort. The cliff overhang protects the structure from rain and direct sun, which is why 1,500-year-old wood survived without rotting. During earthquakes, the flexible wooden joints absorb shock rather than cracking — the same principle as Japanese pagoda construction.
Yes, with a private car. Morning: Yungang Grottoes (8:30–12:00, 16 km west of Datong). Lunch. Afternoon: Hanging Temple (13:30–15:30, 75 km southeast of Datong, 1.5-hour drive from the grottoes). Hire a DiDi driver for the day: ¥400–500. Expect to pay more than the app quote — negotiate directly for the full-day arrangement. Return to Datong by 17:30.
The Northern Wei Dynasty (386–534 AD) was founded by the Xianbei people, a non-Han ethnic group that ruled northern China and adopted a policy of religious tolerance. The Hanging Temple's founder, monk Liao Ran, intentionally created a space where Buddhism (the state religion), Taoism (the indigenous Chinese faith), and Confucianism (the ethical-political system) could coexist — a rare physical expression of the "Three Teachings Harmonious as One" (三教合一) philosophy. This syncretism was politically smart in a multi-ethnic empire.
You can skip the interior climb and still have a worthwhile visit. The ¥30 park grounds ticket gives you access to the valley floor viewing area, which is where the famous photos are taken. The interior is interesting but not essential. The view from below — the temple clinging to the cliff face — is the lasting image, not the view from inside looking out.
Yes — there is no other structure like it in China. The combination of engineering audacity, religious syncretism, and sheer visual drama makes it one of the country's most memorable sights. The drive through rural Shanxi (coal country, terraced fields, old villages) is interesting in itself. It pairs perfectly with Yungang Grottoes for a full day out of Datong.
Huayan Temple
A pair of Liao-dynasty (907–1125) wooden temples holding one of China's largest surviving ancient halls and a celebrated 1,000-year-old smiling bodhisattva. ¥65. 1.5–2 hours.
Mount Wutai
Holiest Buddhist mountain — 53 temples, Manjusri bodhisattva's seat. UNESCO site. ¥135 entry. Cool summer retreat at 3,058 m. From Datong or Taiyuan.
Nine-Dragon Wall
China's oldest and largest Nine-Dragon Wall — 45.5 m of Ming glazed tile built in 1392 for a prince's mansion, viewable in about 30 minutes. Pair it with Huayan Monastery around the corner.
Yingxian Wooden Pagoda (Sakyamuni Pagoda of Fogong Temple)
A 67-meter all-timber pagoda built in 1056 without a single nail — the oldest and tallest surviving wooden pagoda in the world, 70 km south of Datong. ¥60.
Yungang Grottoes
51,000 Buddhist statues carved into 252 caves across a 1 km sandstone cliff — the largest 5th-century rock-cut temple complex in the world. UNESCO. ¥120. 3–4 hours.
Datong Museum
The museum of the ancient capital of the Northern Wei Dynasty — providing context for the Yungang Grottoes and the Pingyao connection. Allow 1 hour.
Yungang Grottoes Museum
One of China's four great Buddhist cave temple sites — Yungang (云冈石窟) with 51,000+ Buddhist images carved 460-525 CE. ¥120.