Skip to main content
nihaovisit

Datong · Visitor Guide

Hanging Temple (Xuankong Temple) (悬空寺, Xuánkōng Sì)

The Hanging Temple (悬空寺, Xuánkōng Sì) is one of the most improbable structures in China: a 40-room temple complex built into a near-vertical cliff face 75 meters above a river valley at the foot of Mount Heng (恒山). Built in 491 AD by a single monk, Liao Ran, the wooden temple is supported by oak crossbeams inserted into holes chiseled into the cliff — the famous vertical pillars you see in photos are mostly decorative and bear almost no weight. The temple houses halls dedicated to Buddhism, Taoism, and Confucianism side by side, a rare example of the three teachings coexisting in one building. It has survived 1,500 years of earthquakes thanks to the cliff protecting it from wind, rain, and sun, and the flexible wooden structure absorbing seismic shocks.

Last updated:

Hanging Temple (Xuankong Temple) travel photo

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.

Quick facts

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.
Hours8:00–17:00 (Mar–Oct), 8:30–16:30 (Nov–Feb).
Recommended duration1–1.5 hours. The temple interior circuit takes 30–45 minutes; the rest is photography from the valley floor.
Best time to visitMay, 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 there75 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 signagepartial
Wheelchair accessibleno
Built491 AD (Northern Wei Dynasty)
Height75 m above the valley floor
Support systemOak crossbeams in cliff — vertical pillars are decorative
Three teachingsBuddhism, Taoism, Confucianism in one temple
Rooms40 halls and pavilions across 3 levels

What to expect

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.

How to get there

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.

Best photo spots

  • From the valley floor looking up at the full temple — the classic shot, best in morning light when the cliff face is illuminated
  • From the highest walkway looking down the valley toward Mount Heng — shows the temple's vertical context
  • Close-up of the wooden support structure — the oak crossbeams driven into the cliff, showing the engineering
  • The mountain-side perspective from the Hengshan path — a less-photographed angle showing the temple against the full cliff

Tips

  • Arrive at opening time (8:00 AM) — the interior climb has a strict capacity limit (~80 people at a time) and the queue can reach 2 hours by 10:00 AM on weekends
  • If the queue is >90 minutes, skip the interior climb — the view from below is the iconic shot, and the interior is cramped and rushed by staff keeping the line moving
  • Wear shoes with grip — the wooden walkways can be slippery, especially after rain
  • The temple is at 1,100 m elevation — bring a layer even in summer; wind through the valley is cold
  • Bathrooms at the site are squat toilets of low quality — use the restroom at your Datong hotel before departing

Scams to avoid

  • Datong taxi drivers insisting the Hanging Temple is "closed for renovation" and offering to take you to a different temple instead — call the site or check online; it is rarely fully closed
  • Overpriced "guided tours" from the ticket office (¥200+) — the temple does not need a guide; read a Wikipedia article beforehand

Frequently asked questions

Is it safe to climb?

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

How does the temple stay attached to the cliff?

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.

Can I visit Yungang Grottoes and the Hanging Temple in one day?

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.

Why are there three religions in one temple?

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.

What if I am afraid of heights?

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

Is the Hanging Temple worth the 1.5-hour drive from Datong?

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.

Read next

Sources