 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.