Hanging Temple
Hanging Temple is one of the featured travel destinations in Shanxi. This guide is being expanded with practical visitor information, travel tips, nearby places, maps, FAQs, and more.
Quick Facts
- Region: Shanxi
- Region type: Province
- City: Not yet specified
- Destination type: Not yet specified
Overview
The Hanging Temple, or Xuankong Si, is a striking cliffside monastery built into a sheer rock face on Mount Heng (Hengshan) near Datong in northern Shanxi, with its wooden halls appearing to float roughly 50 metres above the valley floor on a forest of slender support beams. First constructed more than 1,500 years ago, traditionally dated to the late Northern Wei dynasty around 491 AD, and rebuilt and repaired many times since, it is one of China's most photographed and structurally unusual religious buildings. Uniquely among major Chinese temples, Xuankong Si houses a shared hall enshrining Buddhist, Taoist and Confucian figures together, reflecting a historical ideal of harmony among China's three major belief systems, and it draws visitors as much for its engineering feat as for its religious and artistic content.
Location
The Hanging Temple is located in a narrow gorge of the Golden Dragon Canyon at the foot of Mount Heng, one of China's Five Great Mountains, in Hunyuan County, roughly 65 km southeast of Datong city in northern Shanxi. It clings to the cliff face on the western side of Cuiping Peak, positioned deliberately in the shaded lower part of the canyon to reduce the sun and rain exposure that would otherwise damage its wooden structure. The site sits along a common day-trip route between Datong and the Yungang Grottoes, making it a natural stop for travelers exploring northern Shanxi's cluster of ancient religious architecture.
Climate & Weather
Northern Shanxi's climate around Hunyuan and Mount Heng is cold and dry in winter, with temperatures frequently well below freezing from December through February and occasional snow, while summers (JuneβAugust) are warm during the day with cooler nights typical of the elevated plateau setting. Spring can bring dusty, windy conditions, and rainfall is generally concentrated in the summer months. Because the temple sits recessed into the cliff and partly shaded, temperatures inside the gorge can feel noticeably different from the exposed approach paths, so layered clothing is useful across most seasons.
Best Time to Visit
Late spring through autumn, roughly May to October, offers the most comfortable conditions for visiting the Hanging Temple, with September and October often singled out for clear skies and good photography light on the canyon walls. Summer is the busiest season with the heaviest domestic tourist traffic, so early morning visits help avoid queues on the narrow wooden walkways. Winter visits are much quieter and the temple looks dramatic against a snow-dusted landscape, but cold temperatures and occasional icy steps mean extra caution and warm clothing are needed.
History & Background
Tradition dates the Hanging Temple's founding to the late Northern Wei dynasty, around 491 AD, built according to legend by a monk named Liao Ran, though the structure visible today reflects extensive rebuilding and reinforcement carried out during the Tang, Jin, Ming and particularly Qing dynasties. Its distinctive halls are supported partly by crossbeams slotted into holes drilled into the cliff face and partly by slender wooden props, a combination that has allowed it to survive earthquakes and flooding in the valley below for over a millennium. The temple's inclusion of the Sanjiao Hall, housing statues of Buddha, Confucius and Laozi side by side, reflects a deliberate historical statement about the compatibility of China's three major teachings.
Cultural Significance
The Hanging Temple is significant both as a feat of pre-modern engineering and as a rare physical expression of the 'three teachings in harmony' (sanjiao heyi) philosophy, placing Buddhism, Taoism and Confucianism under one roof at a time when the traditions more commonly maintained separate spaces. Its survival for well over a millennium on an exposed cliff face, largely undamaged by the flash floods that periodically swept the canyon below before a dam regulated the water, has made it a celebrated example of adapting architecture to a challenging natural site rather than altering the landscape. It remains an active place of worship and pilgrimage as well as one of the most recognizable images of Shanxi in Chinese and international travel media.
Things to Do
The main activity is walking the temple's narrow wooden corridors and staircases that link some 40 halls and chambers cut into and cantilevered off the cliff face, taking in the dizzying views down into the gorge below. Visitors typically pause at the Sanjiao Hall to see the combined Buddhist, Taoist and Confucian statuary, and many spend time photographing the temple from viewing points across the canyon, where the full scale of the wooden supports is best appreciated. Because visitor numbers on the walkways are controlled for structural and safety reasons, queuing during busy periods is common, so plan for some waiting time rather than a fast walk-through.
Things to See / Highlights
The Sanjiao Hall, or Hall of Three Religions, is the temple's most distinctive feature, with statues of Sakyamuni Buddha, Confucius and Laozi seated together. The complex's roughly 40 halls and rooms are connected by covered wooden walkways, cantilevered platforms and narrow staircases carved partly into the rock, with the support beams themselves β some inserted into the cliff and others acting as visible props β a major point of visitor interest. From across the gorge, the full silhouette of the temple against the cliff face offers the best photographic view of how the structure appears to hang in mid-air.
How to Reach
The Hanging Temple is most commonly reached from Datong, about 65 km northwest, by hired car, taxi, tour bus or organized day tour, with the drive taking roughly 1 to 1.5 hours depending on the route and traffic. It is frequently combined with a Yungang Grottoes visit on the same day, since both are common stops from Datong, though they lie in different directions and require careful time planning. Public buses running from Datong to Hunyuan county town are available for budget travelers, with a further short taxi transfer needed from Hunyuan to the temple itself.
Timings / Opening Hours
The Hanging Temple typically opens in the morning, around 8am, and closes in the late afternoon or early evening, with hours generally slightly longer in the summer high season and shorter in winter months. Visitor numbers on the wooden walkways are limited at busy times for structural safety, which can extend the effective time needed to enter even within standard opening hours. As with most Chinese heritage sites, seasonal adjustments and occasional weather-related closures are possible, so checking the official Hunyuan or Datong tourism information shortly before visiting is recommended.
Entry Fee / Ticket Price
Entry to the Hanging Temple is charged as a standard ticket price typical of a major northern Shanxi heritage attraction, with fees periodically adjusted by local tourism authorities. Discounted rates are usually available for students, seniors and children with valid identification. Because ticket prices do change and are sometimes bundled differently for tour groups versus independent travelers, it is best to confirm the current rate through an official Datong or Hunyuan tourism channel or a licensed tour operator rather than relying on older published figures.
Duration Needed
Most visitors spend roughly one to two hours at the Hanging Temple itself, enough time to walk the wooden corridors, see the Sanjiao Hall and take photographs from the canyon viewpoints, though queuing during busy periods can add extra time. Combined with the drive from Datong, a half-day is generally sufficient for the temple alone. Many travelers pair it with the Yungang Grottoes in a single, fuller day trip from Datong, in which case budgeting a half day for each site plus transit time between them is the more realistic plan.
Hotels / Accommodation Nearby
There is very limited accommodation immediately at the temple site itself, so most visitors stay in Datong city, about 65 km away, which offers a full range of hotels from international chains to budget guesthouses, or occasionally in Hunyuan county town closer to the site for those wanting an early start. Datong's hotel options cluster around the railway station and the historic old town, both convenient bases for day trips to the Hanging Temple, Yungang Grottoes and other northern Shanxi sights. Advance booking is worthwhile during the summer peak season and national holidays.
Food / Restaurants Nearby
Dining options directly at the temple are limited to small stalls and simple local eateries near the parking and entrance area, so most visitors plan their main meals in Datong city or in Hunyuan county town along the way. Datong's local specialties, including knife-cut noodles (dao xiao mian) and oat-flour noodle dishes, along with hearty northern Shanxi mutton and stewed dishes suited to the cold climate, are widely available back in the city. Travelers on an organized tour often have lunch arranged at a set restaurant en route between the Hanging Temple and Yungang Grottoes.
Nearby Visiting Places
Mount Heng itself, one of China's Five Great Mountains and a significant Taoist pilgrimage site, rises above the temple and offers additional hiking and temple sites for visitors with extra time. The Yungang Grottoes, about 1.5 hours away near Datong, are the most common pairing for a single day trip. Datong's old town, with its restored city walls, Nine Dragon Screen and the Huayan and Shanhua monasteries, makes a worthwhile addition, as does the Yingxian Wooden Pagoda, roughly 2 hours south, for travelers extending their time in the region.
Nearest Transport
The nearest major transport hub is Datong, which has both a domestic airport and high-speed rail connections to Beijing, Taiyuan and other cities; from Datong, hired cars, taxis, tour buses and public buses to Hunyuan all serve the Hanging Temple. There is no rail station at the temple itself, and the final approach from Hunyuan county town requires a short taxi or shuttle transfer, as the site is set within a canyon away from major roads. Most independent travelers find joining an organized day tour or hiring a car with driver from Datong the most efficient option given the site's location.
Safety Tips
The Hanging Temple's wooden walkways are narrow, can feel exposed with steep drops below, and are subject to visitor number limits for structural safety, so patience during busy periods and careful footing are important, particularly for anyone uneasy with heights. Steps can be slippery when wet or icy, especially in winter. As at any major tourist site, keep an eye on personal belongings in crowded sections near the entrance, and be wary of unofficial guides or vendors offering unauthorized services. Standard China travel precautions apply, including not drinking tap water without boiling or filtering.
Things to Carry
Wear sturdy, non-slip footwear given the temple's narrow wooden stairs and platforms, and dress in layers, since northern Shanxi can be cold even outside deep winter and the shaded canyon setting stays cooler than the open approach road. A basic level of comfort with heights is helpful, as the walkways are elevated and somewhat exposed. Carrying a camera or phone with a wide-angle lens is worthwhile for the canyon views, along with sunscreen for the approach path and some cash for small stalls near the entrance that may not accept mobile payment.
Travel Tips & Suggestions
Visit early in the day if possible, both to avoid the queues that build up on the narrow walkways during peak hours and to get clearer photography light on the cliff face. If combining the trip with Yungang Grottoes, plan the route and timing carefully in advance, since a rushed schedule risks running short at one site. Because visitor numbers inside the temple are actively controlled, be prepared for some waiting even outside major holiday periods, and consider hiring a guide, since the structural history and religious symbolism are not always explained by on-site signage alone.
Help Line / Emergency Contact
For emergencies while visiting the Hanging Temple or elsewhere in China, dial 110 for police, 120 for ambulance and medical emergencies, and 119 for the fire department; these nationwide three-digit numbers operate around the clock. The national tourism hotline, 12301, is available for travel-related complaints such as ticketing issues or disputes with tour operators and drivers. Given the site's relatively remote canyon location, mobile phone signal can occasionally be weaker than in central Datong, so informing your driver or tour guide of any medical concerns before setting out is a sensible precaution.
Official Website / Visitor Info
The Hunyuan County and Datong municipal tourism authorities maintain official channels with current information on Hanging Temple opening hours, ticket prices and any temporary access restrictions related to structural conservation or weather. Because visitor capacity on the walkways is actively managed and can affect wait times, checking recent visitor reports or the official tourism site before departure is worthwhile. Staff and ticket counters at the site can also confirm same-day details, and many Datong hotels and tour desks are experienced in helping international visitors plan a combined Hanging Temple and Yungang Grottoes itinerary.
Map
This section is being updated and will be available shortly.
Photo Gallery
This section is being updated and will be available shortly.
Video Gallery
This section is being updated and will be available shortly.
Frequently Asked Questions
How is the Hanging Temple able to stay standing on a cliff?
It is supported by a combination of crossbeams inserted into holes drilled into the rock face and slender wooden props beneath the halls, a technique that has allowed the structure to survive for well over a thousand years.
How old is the Hanging Temple?
Tradition dates its founding to around 491 AD in the late Northern Wei dynasty, though the halls visible today reflect extensive rebuilding during the Tang, Jin, Ming and Qing dynasties.
Can the Hanging Temple and Yungang Grottoes be visited together?
Yes, this is the most common day-trip pairing from Datong, though the sites are in different directions from the city, so an early start and a hired car or tour are recommended.
Is the Hanging Temple safe to visit?
Yes, it is a well-maintained and heavily monitored heritage site, though the narrow elevated walkways can feel exposed, so visitors uneasy with heights or with mobility concerns should approach carefully and expect possible queuing.
What makes the Hanging Temple religiously unique?
Its Sanjiao Hall enshrines Buddha, Confucius and Laozi together in one space, a rare physical expression of the traditional Chinese ideal that Buddhism, Taoism and Confucianism can coexist in harmony.