Li County
During the Northern Wei, the city was known as Hanyang and was the center of the Hanyang Commandery. During the Western Wei, this name was changed to Hanyang County. During the Tang and Five Dynasties, the city of Tianshui was known as Shanggui (). It alternated with Chengji (present-day Qin'an) as the capital of the province of Qinzhou (). Li County was separated from Tianshui's jurisdiction during the ninth year of Chenghua (AD 1473) during the Ming dynasty.