Qinwangzheng 25th year (222 BC), so the Wuyue area established Kuaiji County , and the county was under Wu (now Suzhou ). Qin Shihuang In the 37th year of Qin Shihuang (210 BC), the eastern tour went to Kuaiji , and was renamed Dayue as Shanyin, and Shanyin County was the first to this. In the first year of Huanglong in Wu (229), Shanyin was under the jurisdiction of Kuaiji County. After that, the county was divided at the time, and Shanyin County was the capital of Kuaiji County and remained unchanged. Chen Houzhu at the time (583-589), and Shanyin County was established, and the two counties of Shan and Hui were established, and the governance began with the same city (some say it was during the Yongding period). In the ninth year of Kaihuang in the Sui Dynasty (581), the four counties of Shanyin, Shangyu, Yongxing and Shining were abolished and entered Kuaiji County. In the seventh year of Wude in the Tang Dynasty (624), Kuaiji County was analyzed and Shanyin County was re-established. The following year, Shanyin was abolished and entered Kuaiji County. In the second year of Chuigong (686), Shanyin County was re-established. In the second year of Dali (767), Shanyin County was withdrawn and merged into Kuaiji County due to the report of the governor Xue Jianxun. In the seventh year, Shanyin County was re-established due to the retribution of the governor Chen Shaoyou. In the sixth year of Yuanhe (811), Shanyin County was abolished and merged into Kuaiji County. Shanyin County was re-established in ten years. Since the late Southern Dynasties, Shanyin County has been abandoned for seven degrees. It was re-established in the tenth year of Yuanhe, and the two counties of Shan and Hui were established together, and it began to be stable for a long time and was affiliated with Yuezhou . Hong Kong In the third to fourth years of Jianyan (1129-1130), Emperor Gaozong temporarily stationed in Yuezhou withdrew from Jin, and the prefecture was under Shanyin as the temporary capital. The following year, the reign of "Shaoxing" was changed to "Yuezhou" and promoted to "Haixing Prefecture" to , Shaoxing Prefecture , and the name "Shaoxing" was started here. Shanyin and Kuaiji counties belong to it. In the 13th year of Zhiyuan, the Liangzhe Governor's Office was established (1276), and Shaoxing Prefecture was later abolished as Shaoxing Road, and the Shan and Hui remained in the county. Zhu Yuanzhang In the Bingwu year (1366), Shaoxing Road was changed to Shaoxing Prefecture, and its subordinates remain the same. Qing was the Ming system. In the 11th year of Xianfeng in the Qing Dynasty (1861), the Taiping Army captured Shaoxing Prefecture, and the two counties of Shanyin and Kuaiji belonged to the Taiping Heavenly Kingdom. In the second year of Tongzhi (1863), the Qing army recovered Shaoxing, and the two counties of Shan and Hui were under the jurisdiction of restoration. In the third year of Xuantong (the two counties were suspended until August, and the two counties handed over the seal files. In the first year of the Republic of China (1912), Shaoxing Prefecture was abolished, and the former Shanyin and Kuaiji counties were changed to Shaoxing County, which was affiliated to the Zhejiang Military Government. In the third year, the Kuaiji Road was established between provincial and county counties, and Shaoxing County was affiliated to it. In the sixteenth year, the road was abolished, and Shaoxing County was affiliated to it. In the twenty-fourth year, the Shaoxing Administrative Inspection District was established between provincial and county counties, and Shaoxing County was affiliated to it. The following year, several districts were appointed, and Shaoxing County was affiliated to it. The third administrative inspection area. In April of the 1930s, the Japanese army captured Shaoxing, and the county government moved to Wangtan, Jiangcun and Qiucun, and the government orders were only among the two townships of Longhui and Jidong. In June, the puppet township association was established in Shaoxing urban area, and in June of the following year, the Wang puppet Shaoxing County Government was established, which belonged to the fifth special office of the puppet. In August of the 1934s, the puppet regime collapsed. In the 1937s, the third administrative inspection area was reorganized into the second administrative inspection area, and Shaoxing County was affiliated with it.
May 7, 1949, Shao Xingli, on June 6, the Shaoxing County People's Government was established. It belonged to the 10th Special Office of Zhejiang Province. In October, Shaoxing County was established and Kuaiji County was established. The urban area was established. In November, the tenth Special Office was changed to the Shaoxing Commissioner's Office, and both counties and one city were affiliated to it. In May 1950, Shaoxing City and Kuaiji County were abolished and merged into Shaoxing County. In September, the Xicheng District was relocated to Shaoxing City (county level), and its subordinates remained. In January 1952, Shaoxing County was directly under the provincial government. In February 3, it was renamed as the Ningbo Regional Commissioner Office. In February 1958, Shaoxing County and City merged, called Shaoxing County. In January 1962, the city was renamed Shaoxing City. In September 1964, the Shaoxing District Commissioner Office was renamed, and Shaoxing County was its jurisdiction. In March 1981, Shaoxing County was renamed Shaoxing City (county level). In July 1983, Shaoxing District was abolished, Shaoxing City (prefecture level) was established, and Shaoxing County was restored.