Modern-day Shaoxing sits on the site of the capital of the Spring and Autumn Period State of Yue. Around the sixth century BC, Yue had a sinicised ruling elite which fought a number of wars against its northern archrival, the State of Wu.
Shaoxing was known by the name Kuaiji for much of its history. It became a subprefecture during the Ming and Qing dynasties. Under the Republic of China, it became a county. Under the People's Republic of China it is a city administrative unit