Nanjing dialect
The earliest dialect of Nanjing was an ancient Wu dialect during the Eastern Jin. After the Wu Hu uprising, the Jin Emperor and many northern Chinese fled south, establishing the new capital Jiankang in what is modern day Nanjing. It was during this time that the ancient Wu of Nanjing was replaced by Jianghuai Mandarin. Further events occurred, such as Hou Jing's rebellions during the Liang dynasty, the Sui dynasty invasion of the Chen dynasty which resulted in Jiankang's destruction, Ming Taizu's relocation of southerners from below Yangtze to his newly established capital Nanjing, and the establishment of Nanjing as the capital of the Taiping Kingdom during the Taiping rebellion which resulted in a significant decrease in the city's population. These events all played a role in forming the Nanjing dialect of today.