The Ming Palace (Chinese: 明故宫; pinyin: Míng Gùgōng; literally: "Ming Former Palace"), also known as the "Forbidden City of Nanjing", was the 14th-century imperial palace of the early Ming dynasty, when Nanjing was the capital of China.
Zhu Yuanzhang, who became the founder and first Emperor of the Ming dynasty, began building a palace in what was then known as Jiankang in 1367. At the time, he was self-styled "King of Wu". The palace was built outside the existing city of Jiankang, and was completed by 1368. With its completion, Zhu proclaimed the Ming Dynasty; with himself as the first emperor, known as the Hongwu Emperor; and that Jiankang, now Yingtian, was the "southern capital" ("nanjing") of his empire. For the next few years, few changes were made to the palace in Nanjing as the Emperor focused on building the "middle capital", located in his home town of Fengyang.
In 1373 the Hongwu Emperor shifted his focus back to Nanjing, with a substantial program of expansion and refurbishment of the palace which was completed in 1375. Further expansion occurred in 1392. In 1398 the Hongwu Emperor died, and was succeeded by his grandson, the Jianwen Emperor. A civil war soon ensued as Zhu Di, son of the Hongwu Emperor and uncle of the Jianwen Emperor, sought to take the crown from his nephew.
In 1402, Zhu Di took Nanjing and ascended the throne as the Yongle Emperor. The Jianwen Emperor disappeared amid a fire at the imperial Ming Palace.
The Yongle Emperor was keen to return to Beiping (now Beijing), where he was enfeoffed as a prince. To accomplish this, he raised Beiping to the status of a second capital, adding a Jing suffix to its name - Beiping therefore became the "northern capital", Beijing. Zhu Di began building a palace in Beijing. The Nanjing palace lost its position as the emperor's main residence to Beijing's Forbidden City in 1420 when the Yongle Emperor officially relocated the imperial capital to Beijing. Nanjing retained the status of the "reserve" capital throughout the almost three centuries of the Ming era, with its own "reserve" court and "reserve" ministries, and the palace was placed in the care of officials of the Imperial Household Department. However, the palace was afflicted with a series of fires, which caused damages that were, for the most part, not repaired. In 1449, the three main halls of the Outer Court (the ceremonial seat of government) burned down and were never rebuilt. Other fires destroyed other parts of the palace.