Datong has ten administrative districts, four cities and six counties, namely Pingcheng District, Yungang District, Xinrong District, Yunzhou District, Yanggao County, Hunyuan County, Guangling County, Lingqiu County, Tianzhen County and Zuoyun County.
Datong is a prefecture-level city under the jurisdiction of Shanxi Province, the second largest city in Shanxi Province, and one of the first 24 national historical and cultural cities in China. Datong was founded in May, 1949. After many adjustments, Yu 1993 merged with Yanbei to form the present situation.