In 206 BC, after the victory at Gaixia, Liu Bang named his imperial dynasty after his native district, as was customary. However, he chose Hanzhong rather than his birthplace Pei County (present-day Xuzhou, Jiangsu Province). Thus, Hanzhong gave its name to the Han dynasty. In the second century AD, the Eastern Han dynasty gradually weakened. Outsiders from the Ba region attacked the Hanzhong area, as they had in the past. The Han dynasty lost power. Zhang Lu, supported by followers of a Taoist sect, Way of the Celestial Masters, led an independent theocratic government in Hanzhong. Thirty years later, after the Battle of Yangping, Zhang Lu surrendered Zanghong to the warlord, Cao Cao. Prior to and during the Three Kingdoms period, Hanzhong was a militarily strategically important site. It is located at a critical point along the route an army would take from the Central Plain to the Sichuan Basin. At this time, Cao Cao lost control of Hanzhong to Liu Bei, who assumed the title of King of Hanzhong. Ruins and landmarks of the Three Kingdoms era remaining in Hanzhong include the tomb of the Shu Han chancellor Zhuge Liang. Much of this period of Hanzhong's history is retold in the historical novel Romance of the Three Kingdoms. Tang, Song, and Yuan dynasties (618-1368) In Hanzhong, between the end of the Han dynasty and the beginning of the Tang dynasty there was political turmoil. In 784, when the capital, Chang'an (modern Xi'an) was captured, the Emperor Dezong of Tang fled to Hanzhong. During the Northern Song dynasty (960 - 1127), however, Hanzhong became economically wealthy with city tax revenue just behind that of regional capitals such as Kaifeng and Chengdu. Ming and Qing dynasties, and the present (1368-present) In 1331, during the Ming dynasty in the reign of the Hongwu Emperor, extensive renovations were made to Hanzhong's infrastructure. This work brought Zanghong to its present layout and form. The Wanli Emperor (r. 1572-1620) installed his fifth son, Zhu Changhao (), as king of Hanzhong. Changhao built a large, luxurious palace in what is now the Children's Park. The palace's Radiant Glass Wall () was demolished during road construction in 1935. Since then, a 13.6 m section has been rebuilt on the eastern end of Sanpu Street (). In 1643, Zhu Changhao fled south to Sichuan ahead of Li Zicheng's rebel army. As he departed, his Hanzhong palace was looted.