 Because the Imperial City was untouched by battle, most of the Imperial City survived the war; however, in 1369, the Hongwu Emperor ordered that the Imperial City be demolished.In 1370, the Hongwu Emperor's fourth son Zhu Di was created Prince of Yan, with seat in Beiping.In 1379 he built a princely palace within the Yuan Imperial City.