五胡乱华
According to records of the Eastern Jin, the earliest known dialect of Nanjing was an ancient Wu dialect. After the Wu Hu uprising and the Disaster of Yongjia in 311, the Jin Emperor and many northern Chinese fled south, establishing the new capital Jiankang in what is modern-day Nanjing.