The Hanging Temple, also Hanging Monastery or Xuankong Temple is built into a cliff near Mount Heng in Hunyuan County, Datong City, Shanxi province. Along with the Yungang Grottoes, the Hanging Temple is one of the main tourist attractions and historical sites in the Datong area. The closest city is Datong, 64.23 kilometers to the northwest.
The temple was built more than 1,500 years ago. It is notable for its location on a sheer precipice and is the only existing temple that combines three religions; Buddhism, Taoism and Confucianism. There are more than eighty copper, iron, stone and clay statues of Buddha. It has 40 rooms (including Mahavira Hall and Thunder Hall) with an area of 152.5M².
The rock under the temple has two Chinese characters inscribed meaning "spectacular" and were written by poet Libai. In December 2010, it was listed in Time magazine's list of top ten most odd and dangerous buildings around the world.