Question: when was nanjing(nanking) selected as the capital city of the republic of china
Answer: In 317 , remnants of the Jin court , as well as nobles and wealthy families , fled from the north to the south and reestablished the Jin court in Nanjing , which was then called Jiankang ( 建 康 ) , replacing Luoyang .