Xuankong Temple

Religious Site Cliff-hanging temple near Datong with multi-religious shrines

Built into a cliff on Mount Heng in Shanxi, Xuankong Temple uses wooden terraces and narrow stairways. Sightseers come for the unusual hanging architecture and mixed Buddhist, Taoist and Confucian iconography.

Main image

Xuankong Temple, commonly known in English as the Hanging Temple, is a wooden religious complex built into a sheer cliff near Mount Heng (Hengshan) in Shanxi province, China. It is notable for its dramatic location and for combining elements of Buddhism, Taoism and Confucianism within the same complex.

The temple dates to antiquity and is widely described as having origins in the Northern Wei period and later renovations; its principal halls and walkways are supported by beams inserted into the rock face, creating a series of cliffside pavilions and corridors. Visitors go to view the unusual suspended construction and the cliffside corridors, and to reach the site which lies on the southern slope of Mount Heng.

The temple is located approximately 60-70 kilometres south of the city of Datong and is accessed by a short approach from roads serving the Hengshan area.

  • Construction method: Built into a cliff face using cantilevered wooden support beams that are anchored into the rock, a distinct example of cliff-hanging architecture.
  • Religious significance: The complex integrates Buddhist, Taoist and Confucian elements and is known by the English name "Hanging Temple" or "Hanging Monastery."
Xuankong Temple
Cliffside near Hengshan (Mount Heng), Datong, Shanxi Province
39.6596, 113.7084

How to Get to Xuankong Temple #

The nearest city with visitor services is Datong. From Datong, coaches and local buses run to the Hengshan area; many visitors take organized day tours that combine Xuankong Temple with nearby attractions such as the Yungang Grottoes.

Tips for Visiting Xuankong Temple #

  • Approach the Xuankong Temple (Hanging Monastery) from the town of Datong and consider a combined visit with the nearby Yungang Grottoes.
  • The temple perches on a cliff and involves narrow wooden walkways; those with mobility concerns should plan accordingly.
  • The temple closes or restricts access during severe weather; check local notices in Datong for closures.

Best Time to Visit Xuankong Temple #

Best visited in spring or autumn for comfortable weather and clearer visibility; summers can be hot and hazy.

Spring
April-June · 5-20°C (41-68°F)
Pleasant temperatures and clearer skies - good for cliffside views.
Autumn
September-October · 5-18°C (41-64°F)
Cooler air and lower chance of rain; light is good for photographs.

Weather & Climate near Xuankong Temple #

Climate

Xuankong Temple's climate is classified as Warm-Summer Continental (Dry Winter) - Warm-Summer Continental (Dry Winter) climate with mild summers (peaking in July) and freezing winters (coldest in January). Temperatures range from -18°C to 25°C. Semi-arid with limited rainfall with a pronounced dry season.

Air Quality: AQI 86 Moderate
Best Time to Visit
JuneMayAugust
Temperature & Rainfall
Temperature Range
36°
Warmest Month
-29°
Coldest Month
Monthly Conditions

January

January is the coldest month with highs of -5°C and lows of -18°C. The driest month with just 3 mm and partly cloudy skies.

51 Acceptable

Comfort

-12°
Feels Like Freezing
-12°C
Temperature
-19° -5°
70%
Humidity
Humid

Weather

3 mm
Rainfall
3.5 m/s
Wind
Light Breeze
0.3
UV Index
Low
9.6h daylight

February

February is freezing with highs of -1°C and lows of -15°C. Almost no rain and partly cloudy skies.

51 Acceptable

Comfort

-8°
Feels Like Freezing
-8°C
Temperature
-15° -1°
63%
Humidity
Humid

Weather

5 mm
Rainfall
3.6 m/s
Wind
Light Breeze
0.4
UV Index
Low
10.6h daylight

March

March is freezing with highs of 5°C and lows of -8°C. Almost no rain.

62 Good

Comfort

-2°
Feels Like Freezing
-2°C
Temperature
-8°
52%
Humidity
Humid

Weather

9 mm
Rainfall
3.6 m/s
Wind
Light Breeze
0.8
UV Index
Moderate
11.8h daylight

April

April is cold with highs of 14°C and lows of -1°C. Light rainfall and partly cloudy skies.

68 Good

Comfort

Feels Like Cold
C
Temperature
-1° 14°
48%
Humidity
Comfortable

Weather

23 mm
Rainfall
4.1 m/s
Wind
Light Breeze
1.2
UV Index
High
13.1h daylight

May

May is cool with highs of 21°C and lows of 6°C. Moderate rainfall (35 mm) and partly cloudy skies.

76 Very Good

Comfort

14°
Feels Like Cool
14°C
Temperature
21°
47%
Humidity
Comfortable

Weather

35 mm
Rainfall
3.8 m/s
Wind
Light Breeze
1.5
UV Index
Very High
14.2h daylight

June

June is cool with highs of 24°C and lows of 11°C. Moderate rainfall (56 mm) and partly cloudy skies.

80 Excellent

Comfort

18°
Feels Like Cool
18°C
Temperature
11° 25°
57%
Humidity
Humid

Weather

56 mm
Rainfall
3.3 m/s
Wind
Light Breeze
1.4
UV Index
High
14.7h daylight

July

July is the warmest month with highs of 25°C and lows of 14°C. The wettest month with heavy rain (117 mm) and partly cloudy skies.

73 Very Good

Comfort

20°
Feels Like Mild
20°C
Temperature
14° 25°
68%
Humidity
Humid

Weather

117 mm
Rainfall
2.6 m/s
Wind
Calm
1.5
UV Index
High
14.5h daylight

August

August is mild with highs of 24°C and lows of 12°C. Regular rainfall (90 mm) and partly cloudy skies.

75 Very Good

Comfort

18°
Feels Like Mild
18°C
Temperature
12° 24°
71%
Humidity
Very Humid

Weather

90 mm
Rainfall
2.3 m/s
Wind
Calm
1.4
UV Index
High
13.5h daylight

September

September is cool with highs of 19°C and lows of 6°C. Moderate rainfall (44 mm) and partly cloudy skies.

75 Very Good

Comfort

13°
Feels Like Cool
13°C
Temperature
19°
67%
Humidity
Humid

Weather

44 mm
Rainfall
2.5 m/s
Wind
Calm
1.1
UV Index
High
12.3h daylight

October

October is cold with highs of 13°C and lows of 0°C. Light rainfall.

70 Very Good

Comfort

Feels Like Cold
C
Temperature
-1° 13°
64%
Humidity
Humid

Weather

19 mm
Rainfall
3.0 m/s
Wind
Light Breeze
0.7
UV Index
Moderate
11.0h daylight

November

November is freezing with highs of 4°C and lows of -9°C. Almost no rain and mostly sunny skies.

64 Good

Comfort

-3°
Feels Like Freezing
-3°C
Temperature
-9°
66%
Humidity
Humid

Weather

9 mm
Rainfall
3.4 m/s
Wind
Light Breeze
0.3
UV Index
Low
9.9h daylight

December

December is freezing with highs of -3°C and lows of -16°C. Almost no rain.

53 Acceptable

Comfort

-9°
Feels Like Freezing
-9°C
Temperature
-16° -3°
70%
Humidity
Humid

Weather

5 mm
Rainfall
3.3 m/s
Wind
Light Breeze
0.2
UV Index
Low
9.3h daylight

Nearby Attractions to Xuankong Temple