Nanjing holds great historical significance as it has served as a capital city and witnessed various dynasties , imperial ruling, and important events like the Nanjing Massacre and the signing of the Treaty of Nanjing.