context: Zhejiang, as the heartland of the Jiangnan (Yangtze River Delta), remained the wealthiest area during the Six Dynasties (220 or 222–589), Sui, and Tang. After being incorporated into the Sui dynasty, its economic richness was used for the Sui dynasty's ambitions to expand north and south, particularly into Korea and Vietnam. The plan led the Sui dynasty to restore and expand the network which became the Grand Canal of China. The Canal regularly transported grains and resources from Zhejiang, through its metropolitan center Hangzhou (and its hinterland along both the Zhe River and the shores of Hangzhou Bay), and from Suzhou, and thence to the North China Plain. The débâcle of the Korean war led to Sui's overthrow by the Tang, who then presided over a centuries-long golden age for the country. Zhejiang was an important economic center of the empire's Jiangnan East Circuit and was considered particularly prosperous. Throughout the Tang dynasty, The Grand Canal had remained effective, transporting grains and material resources to North China plain and metropolitan centers of the empire. As the Tang Dynasty disintegrated, Zhejiang constituted most of the territory of the regional kingdom of Wuyue.
question: ఆరు రాజవంశాలు ఎప్పుడు ముగిశాయి?
answers: 589