Shaanxi is a province in north Northwestern China bordering the province-level divisions of Inner Mongolia to the north; Shanxi and Henan to the east; Hubei, Chongqing, and Sichuan to the south; and Gansu and Ningxia to the west. Shaanxi covers an area of over 205,000 km (79,000 sq mi) with about 37 million people, the 16th-largest in China. Xi'an, which includes the sites of the former capitals Fenghao and Chang'an – is the provincial capital and largest city in Northwest China and also one of the oldest cities in China. It is also the oldest of the Four Ancient Capitals, being the capital for the Western Zhou, Western Han, Jin, Sui and Tang dynasties. Xianyang, which served as the capital of the Qin dynasty (221–206 BC), is just north across the Wei River. The other prefecture-level cities into which the province is divided are Ankang, Baoji, Hanzhong, Shangluo, Tongchuan, Weinan, Yan'an and Yulin.
The province is geographically divided into three parts, namely Northern (or "Shaanbei"), Central ("Shaanzhong") and Southern Shaanxi (or "Shaannan"). Northern Shaanxi makes up the southeastern portion of the Ordos Basin and mainly comprises the two prefectural cities of Yulin and Yan'an on the northern Loess Plateau, demarcated from the Ordos Desert and the grasslands of Inner Mongolia's Ordos City by the Ming Great Wall. Central Shaanxi is also known as the Guanzhong region, and comprises the drainage basin of lower Wei River east of Mount Liupan and north of the Qinling Mountains, where the majority of Shaanxi's population reside. Southern Shaanxi comprises the three prefectural cities in the edge of the historical Bashu region south of the Qinling Mountains and includes the three mountainous cities of Hanzhong, Ankang and Shangluo.