Why did the Eastern Jin dynasty choose Nanjing as its capital in 317?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

The Eastern Jin dynasty (Dong Jin) chose Nanjing—then known as Jiankang—as its capital in 317 primarily because the ruling Sima family was fleeing foreign invasions in North China.12

Following the collapse of the Western Jin dynasty and the destruction of its capitals at Luoyang and Chang'an by northern nomadic groups, the surviving members of the imperial family retreated south of the Yangtze River. Nanjing served as a strategic haven for these northern families in exile. The city had previously established itself as a significant political and cultural center during the Three Kingdoms period, when it served as the capital for the kingdom of Wu, making it a logical choice for the re-establishment of the Jin dynasty.21