Hanging Temple of Datong: China's Gravity Defying Cliff Monastery

Hanging Temple of Datong: China's Gravity Defying Cliff Monastery

Last updated: June 9, 2026

Pinned to a sheer rock face below Mount Heng in Shanxi province, the Hanging Temple looks almost impossible. A cluster of timber halls and connecting walkways clings to the cliff roughly 50 meters above the canyon floor, supported by slender wooden poles and beams driven into the stone. From the valley it appears to float, and the closer you get, the more improbable it seems.

This is one of the most photographed sights in northern China for good reason. The temple is over 1,500 years old in origin, rebuilt and reinforced across the centuries, and it is one of the few surviving sites in the country that brings Buddhism, Taoism, and Confucianism together under one set of roofs. For travelers based in Datong, it is the natural pairing with the Yungang Grottoes, and the two together make a full and rewarding day.

It is also small. The actual visit, once you are walking the cliff galleries, takes well under an hour. Understanding that scale, plus the realities of crowds, queues, and vertical drops, is the difference between a smooth side trip and a frustrating one. This guide covers how to get there, what to expect on the walkways, and how to plan the day sensibly.

What the Hanging Temple Is

The Hanging Temple, known in Chinese as Xuankong Si, sits in the Hunyuan area south of Datong, in the gorge below the sacred peak of Mount Heng (Hengshan), one of China's five great mountains. The complex includes around 40 small rooms and halls linked by narrow plank walkways and steep wooden stairs that hug the rock.

The engineering is the headline. Long horizontal beams are inserted deep into holes carved in the cliff, and these carry much of the load. The thin vertical poles you see beneath the structure look like the main support, but many of them bear less weight than they appear to, acting partly as stabilizers. The cliff overhang above shelters the temple from rain and direct sun, which is a major reason the timber has survived so long.

Inside the halls you will find statues representing the Buddha, Laozi, and Confucius, sometimes in the same room. This blend of three traditions is unusual and reflects the temple's long role as a place where different beliefs coexisted rather than competed. The carvings and figures are modest in scale compared with the grand grottoes nearby, but the setting carries the experience.

Things to Do

Why It Matters

Few buildings deliver such an immediate visual punch. The first sight of the temple suspended against the rock is genuinely startling, and it photographs beautifully in morning or late afternoon light. Beyond the spectacle, the site is historically significant as a rare example of cliff-built religious architecture that has endured for many centuries in an active seismic and weather-prone region.

For independent travelers, the temple is valuable as a contrast. Datong is best known for the colossal Buddhist sculptures at Yungang, and the Hanging Temple offers something smaller, more intimate, and more vertiginous. The two sites tell complementary stories about how religion shaped this corner of China.

Getting There from Datong

The Hanging Temple is roughly 65 to 75 kilometers southeast of Datong, depending on the route, and the drive typically takes around 1.5 hours. There is no single easy public bus that drops you at the gate, so most independent travelers use one of these approaches:

  • Private car or driver for the day. The most efficient option. A hired car or driver can combine the Hanging Temple with Yungang Grottoes in a single day, which makes the cost much easier to justify. Agree the full itinerary and waiting time in advance.
  • Organized day tour. Many tours from Datong bundle Yungang and the Hanging Temple. This removes the logistics but ties you to a fixed schedule and group pace.
  • Bus to Hunyuan plus local transport. Buses run from Datong toward the Hunyuan area, and from there you arrange a short local taxi or shared ride to the temple. This is the cheapest route but the least predictable, and timings can be awkward for getting back.

Because Yungang sits on the opposite side of Datong from the Hanging Temple, a sensible day plan is to visit one in the morning and one in the afternoon, with the drive in between. Confirm distances and current road conditions locally, as routes and travel times can shift.

The Visit: Walkways, Queues, and Time Needed

Plan your time around two separate experiences. The first is viewing the temple from the valley floor and approach, which is free-flowing and where most of the best photographs happen. The second is actually walking up onto the cliff galleries, which is the part with real constraints.

The walkways are narrow, the stairs are steep, and the structure can only hold a limited number of people at once. During busy periods this creates a strict bottleneck. Visitors are admitted onto the elevated walkways in controlled numbers, and you may queue at the base before being allowed up. The circuit itself, once you are on it, is short and largely one-directional, so it moves, but the wait to start can be long on peak days and holidays.

Expect the on-cliff portion to take only 20 to 45 minutes of actual walking. Allow extra for the queue. As a planning rule, budget two to three hours for the whole site including travel time within the area, viewing from below, the wait, and the walk.

Height Sensitivity and Physical Realities

This is not a relaxing stroll. The walkways are exposed, the drop below is significant, and some sections involve tight passages and steep, ladder-like wooden steps. Travelers who are uncomfortable with heights, vertigo-prone, or unsteady on stairs should think carefully before committing to the elevated route. The views from the valley below are excellent on their own, and there is no shame in admiring the temple from the ground.

Other practical realities:

  • Footing can be slick if it has rained or in cold weather. Wear shoes with grip.
  • The passages are narrow, so large bags and bulky camera setups are awkward. Travel light on the cliff.
  • Movement on the walkways is one-way and people-limited, so you cannot easily linger or turn back. Take your photos efficiently.
  • Young children and anyone with mobility issues will find the stairs challenging.

Tickets and Access

The Hanging Temple typically charges a base entrance fee for the grounds plus a separate, additional fee to climb onto the cliff walkways themselves. Many visitors are surprised by this two-tier structure, so budget for both if you intend to go up. The combined cost is modest in international terms but worth confirming on arrival.

Because the cliff portion is capacity-controlled, access can be paused or slowed during heavy crowds, and the site may restrict the walkways entirely in poor weather or for safety. Opening hours, exact prices, and any seasonal access rules can change, so verify the current details before you travel rather than relying on older information. For broader trip planning across the region, GoAsia.cc is a useful place to keep mapping out your China itinerary.

Combining with Yungang Grottoes

The strongest reason to base yourself in Datong is the pairing of these two sites. The Yungang Grottoes are a UNESCO World Heritage complex of cave temples filled with thousands of carved Buddhist figures, including enormous seated Buddhas. They are larger in scale and require more walking and viewing time than the Hanging Temple.

A common and efficient full-day structure looks like this:

TimeActivityNotes
MorningYungang GrottoesAllow 2 to 3 hours; large site, lots of walking
MiddayTravel and lunchLong transfer across Datong toward Hunyuan
AfternoonHanging TempleViewing plus cliff walkway circuit

Because the two sites are on opposite sides of the city, the midday transfer is the main time cost. A private car or a tour that already accounts for this is the smoothest way to do both in one day. If you prefer a slower pace, split them across two days and add Datong's old city walls and temples in between.

Comparing the Two Datong Highlights

FeatureHanging TempleYungang Grottoes
Main drawCliff-built timber templeCarved cave Buddhas
ScaleCompactLarge, sprawling
Time neededAbout 2 to 3 hours totalAbout 2 to 3 hours minimum
Physical demandSteep stairs, heights, queuesLots of walking, mostly level
Best forSpectacle and engineeringArt and history depth
Height concernSignificant on walkwaysMinimal

Weather and When to Go

Shanxi has a continental climate with hot summers, cold winters, and a wide daily temperature swing. The cliff setting amplifies conditions: wind funnels through the gorge, the stone radiates heat in summer, and winter brings real cold with the risk of ice on the walkways.

  • Spring and autumn are the most comfortable for the walkways, with milder temperatures and clearer light for photographs. These are generally the sweet-spot seasons for the Datong region.
  • Summer brings heat, more domestic tourists, and longer queues for the cliff route. Go early in the day if you visit then.
  • Winter is cold and the elevated walkways can be slippery or restricted, but crowds thin out. Dress for sharp wind and check whether the cliff portion is open.

Aim for morning light or late afternoon for the best photos of the temple against the rock. Midday on a clear day flattens the dramatic shadows that make the structure pop.

Crowd Strategy

The single biggest frustration at the Hanging Temple is queuing for the capacity-limited walkways. To minimize it:

  • Arrive early, ideally near opening, before tour buses converge.
  • Avoid Chinese national holidays and peak summer weekends if you have flexibility, as queues can balloon.
  • Do your valley-floor viewing and photography first if the queue looks short, or join the walkway line immediately if it is building fast.
  • If you are pairing with Yungang, consider doing the Hanging Temple early and Yungang afterward to beat the worst of the cliff queues, then reverse the table above.

Practical Tips for a Smooth Cliff Temple Visit

  • Decide in advance whether you are going up. The cliff walkways are the highlight for many, but the ground views are genuinely good. If heights are a problem, you can still have a satisfying visit from below and skip the extra walkway fee.
  • Carry small cash and confirm the two-tier pricing. The grounds and the walkway access are usually separate charges. Have payment ready and check current rates on arrival.
  • Travel light on the structure. Narrow passages and steep steps make big backpacks and tripods a nuisance. Keep a small daypack and a secured camera.
  • Wear grippy shoes. Worn timber and stone can be slick, especially after rain or in cold months.
  • Move efficiently on the one-way circuit. You cannot easily backtrack, and others are waiting. Take photos, take in the view, and keep moving.
  • Plan the long transfer. The distance between the Hanging Temple and Yungang is the main time sink of a combined day. Lock in transport and a rough schedule before you set out.
  • Verify current operating details. Hours, prices, and walkway access rules can change and are sometimes affected by weather or maintenance. Confirm shortly before your visit.
  • Build in a buffer. If your day is tight, treat the cliff queue as the unpredictable variable and give yourself slack so you are not rushing the second site.

Realistic Downsides

It is worth setting expectations honestly. The Hanging Temple is small, and the actual time on the walkways is brief, so some travelers feel the effort to reach it outweighs the payoff if visited alone. The queues during busy periods can be disproportionately long relative to the short circuit. The walkways are tight and the experience is rushed by design, which means you do not get to linger.

The site is also at its most magical from a distance and in photographs; up close, the interiors are modest. None of this makes it a poor visit, but it is best understood as a striking half-day spectacle paired with Yungang, rather than a destination that fills a full day on its own.

Where It Fits in a Datong Trip

Datong rewards two to three days. The Hanging Temple and Yungang Grottoes anchor the region's must-sees, and the city itself has a restored old town, temples, and the Nine Dragon Wall to round out a stay. Datong connects to the wider rail network, so it slots well into a northern China route that might include Beijing or onward travel deeper into Shanxi. If you only have one full day for the highlights, the Yungang-plus-Hanging-Temple combination is the classic and most satisfying use of it.

Frequently Asked Questions

How much time should I budget for the Hanging Temple?

Plan two to three hours for the whole visit including travel within the area, viewing from the valley floor, and the queue for the cliff walkways. The actual walk on the elevated galleries is short, usually 20 to 45 minutes, but waits can be long on busy days and holidays.

How much does it cost to visit and is there an extra fee?

The Hanging Temple typically charges a base entrance fee for the grounds plus a separate additional fee to climb onto the cliff walkways. The combined cost is modest in international terms, but you should budget for both if you intend to go up. Confirm current prices on arrival, as they can change.

How do I get to the Hanging Temple from Datong?

It is roughly 65 to 75 kilometers southeast of Datong, about 1.5 hours by road. The easiest options are hiring a private car or driver for the day or joining a tour, both of which can combine the temple with Yungang Grottoes. Buses to the Hunyuan area plus a local taxi are cheaper but less predictable for the return.

Is the Hanging Temple suitable if I am afraid of heights?

The cliff walkways are exposed, narrow, and steep with a significant drop below, so vertigo-prone visitors may find them uncomfortable. The good news is that the views from the valley floor are excellent on their own, and you can skip the elevated route entirely while still enjoying the site.

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

Yes, and it is the classic Datong day trip. The two sites are on opposite sides of the city, so the midday transfer is the main time cost. A private car or a tour that already accounts for this is the smoothest way to do both, with each site needing two to three hours.

What is the best time of year to visit?

Spring and autumn offer the most comfortable temperatures and good light for photos. Summer is hot and busy with longer walkway queues, while winter is cold and the elevated walkways can be slippery or restricted. Morning or late afternoon light gives the best photographs of the temple against the cliff.

How can I avoid the worst queues for the cliff walkways?

Arrive early, ideally near opening time, before tour buses converge, and avoid Chinese national holidays and peak summer weekends if you can. The walkways are capacity-controlled, so the line to get on is the main bottleneck. Doing the Hanging Temple first and Yungang afterward can help you beat the crowds.