Hunyuan County is a county under the administration of Datong City, in the northeast of Shanxi province, China.
During the Spring and Autumn period of Chinese history, present-day Hunyuan County formed part of the Baidi state of Dai[1][2] to the north of the Zhou Kingdom. It was conquered by the Zhao clan of Jin.
Under the Han, Guo County was established and placed under Yanmen Commandery and Pingshu County was established and placed under Dai Commandery.[3] Pingshu was later merged with Guo County, which was placed in Hengshan Commandery. During the Jianwu era of the Eastern Han, Guo County was renamed. During the Three Kingdoms, Wei restored the name Guo. This was changed to Guoshan County by the Northern Wei, who placed it under the administration of Si Prefecture.[3] Under the Tang, it was placed in Yun Prefecture.[3]
The 1,500-year-old Hanging Temple is an important and unique structure within the Datong area.
In 2010 the population of the district was 343,486 inhabitants.