Emperor Wen of Sui conquered Nanjing, the capital of the Chen dynasty (the final Southern Dynasty). This ended the Northern and Southern dynasties period and marked the reunification of China.