The fortifications were built in the late 14th century under the Hongwu emperor as a military defense. I found it interesting that on one side of the walls today are more modern-looking buildings, compared with older-style buildings on the other side.