Datong is situated in northern Shanxi Province. It is bordered by Inner Mongolia to the North and Hebei Province to the east. Covering an area of 14,176 square kilometers (5473 square miles), Datong has four districts and seven counties under its prefecture. It is the second largest city in Shanxi Province with a population of 2.99 million.