The founder of theHan dynasty,Liu Bang, was once enfeoffed as the king of the Hanzhong region after overthrowing theQin dynasty. During theChu-Han contention, Liu Bang shortened his title to the King of Han (漢王), and later used it as the name of his imperial dynasty. In this way, Hanzhong was responsible for the naming of the Han dynasty, which was later hailed as the firstgolden age in imperial Chinese history and lends its name tothe principal ethnic group in China.
Hanzhong is located at the modernheadwater of the Han River, the largest tributary of theYangtze River. Hanzhong city covers 27,246 square kilometres (10,520 sq mi) and is centered around theHantai District. The prefecture-level city consists of two urban district and nine rural counties. As of the 2020 census, its population was 3,211,462, of whom 1,084,448 lived in the built-up (or metro) area made of Hantai and Nanzheng districts.
There are few references to Hanzhong before theQin dynasty's unification of China in 221 BC. TheBook of Documents refers to an area called Liangzhou (梁州), whileSima Qian's bookRecords of the Grand Historian speaks of a "Bao state" (褒國; where the ancient beautyBao Si came from), both of which are believed to refer to the area now called Hanzhong.
Gilded Bronze Ruler - 1chi = 231 cm. Western Han (206 BCE – CE 8), Hanzhong
In theQin dynasty the area was governed as the Hanzhong Commandery, whoseseat was in current dayNanzheng County, south of the Hanzhong urban area.[5] In 207 BC, the Qin dynasty collapsed.Liu Bang, who would later become the founding emperor of theHan dynasty, was made lord of Hanzhong. He spent several years there before raising an army to challenge his arch-rival,Xiang Yu, during theChu–Han Contention. In 206 BC, after thevictory at Gaixia, Liu Bang named his imperial dynasty after his native district, as was customary. However, he chose Hanzhong rather than his birthplacePei County (present-dayXuzhou,Jiangsu Province).[6] Thus, Hanzhong gave its name to the Han dynasty.
In the second century AD, the Eastern Han dynasty gradually weakened. Outsiders from theBa region attacked the Hanzhong area, as they had in the past. The Han dynasty lost power.Zhang Lu, supported by followers of aTaoist sect,Way of the Celestial Masters, led an independent theocratic government in Hanzhong.[7] Thirty years later, after theBattle of Yangping, Zhang Lu surrendered Hanzhong to the warlord,Cao Cao.
Prior to and during theThree Kingdoms period, Hanzhong was a militarily strategically important site. It was located at a critical point along the route an army would take from theCentral Plain to the Sichuan Basin. At this time, Cao Cao lost control of Hanzhong toLiu Bei, who assumed the title of King of Hanzhong. Ruins and landmarks of the Three Kingdoms era remaining in Hanzhong include the tomb of theShu Han chancellorZhuge Liang. Much of this period of Hanzhong's history is retold in the historical novelRomance of the Three Kingdoms.
In Hanzhong, between the end of the Han dynasty and the beginning of theTang dynasty there was political turmoil. In 784, when the capital,Chang'an (modern Xi'an) was captured, theEmperor Dezong of Tang fled to Hanzhong. During theNorthern Song dynasty (960–1127), however, Hanzhong became economically wealthy with city tax revenue just behind that of regional capitals such asKaifeng andChengdu.
Ming and Qing dynasties, and post-imperial era (1368–present)
In 1331, during theMing dynasty in the reign of theHongwu Emperor, extensive renovations were made to Hanzhong's infrastructure. This work brought Hanzhong to its present layout and form.
TheWanli Emperor (r. 1572–1620) installed his fifth son, Zhu Changhao (Chinese:朱常浩), as king of Hanzhong. Changhao built a large, luxurious palace in what is now the Children's Park.[8] The palace's Radiant Glass Wall (Chinese:玻璃照壁) was demolished during road construction in 1935. Since then, a 13.6 m section has been rebuilt on the eastern end of Sanpu Street (Chinese:伞铺街;pinyin:Sǎnpù Jīe).
In 1643, Zhu Changhao fled south to Sichuan ahead ofLi Zicheng's rebel army. As he departed, his Hanzhong palace was looted.Qing dynasty historians remembered the massive but empty palace.
The governance of Hanzhong, including the municipal executive, the legislature and thejudiciary are located inHantai District (汉台区). The offices of the CCP and thePublic Security Bureau are also located in Hantai District.
Hanzhong consists two urban districts and nine rural counties.
Hanzhong is located in southwestern Shaanxi, near the border withGansu andSichuan Provinces. It is part of theShannan region. Hanzhong lies in the centre of theHanzhong Basin, on the banks of theHan River (Hanshui).
TheDaba Mountains rise to the south of the city. To the north are theQin Mountains. These mountains make a northern geographical limit of southern China. However, officially, Shaanxi is part ofthe northwest.[10][11] For more on the divisions between northern and southern China, seeNorthern and southern China.
The coordinates of the city's prefecture ranges in latitude from 33° 02' to 33° 22' N and in longitude from 106° 51' to 107° 10' E. It covers 27,246 square kilometres (10,520 sq mi).[12] The northern part of the prefecture is elevated while the southern part is generally low lying. Height above sea level varies from around 500 metres (1,600 ft) in the urban area to 2,038 metres (6,686 ft) in the Qin Mountains.
Hanzhong has a temperate and humid climate. It is classified ashumid subtropical (KöppenCwa), with cool, damp winters and hot, humid summers.
The Qin Mountains to the north help shield the city from coldSiberian winds in the winter. Hence, the winter in Hanzhong is warmer than that at similar latitudes east of Shannan. This is despite Hanzhong's elevation and inland location.
In contrast, because of its elevation, Hanzhong summers are temperate, with average highs in July and August about 30 °C (86 °F). The area is far more humid thancentral andnorthern Shaanxi. In Hanzhong, there is 853 mm (33.6 in) precipitation annually, as compared to 553 mm (21.8 in) inXi'an, the provincial capital.[14] The chance of sunshine days per month varies from twenty-six percent in November and December to fifty percent in August. Hanzhong receives 1,569 hours of bright sunshine each year. The monthly 24-hour average temperature ranges from 2.8 °C (37.0 °F) in January to 25.6 °C (78.1 °F) in July. The annual mean is 14.67 °C (58.4 °F). Record extremes there have ranged from −10.1 °C (13.8 °F) on 14 January 1957 to 41.1 °C (106.0 °F) on 16 July 2025.
Climate data for Hanzhong, elevation 510 m (1,670 ft), (1991–2020 normals, extremes 1951–present)
^陕西汉中梁山吴家坪灰岩的再研究 [Restudies on the Wujiaping Limestone Liangshan of Hanzhong, Shaanxi]. Archived fromthe original on 29 July 2013. Retrieved29 November 2012.