The Palace was burnt to the ground during the Japanese invasion in 1592 and reconstructed in 1609 by King Seonjo and King Gwanghaegun. The palace burnt down again in 1623 because of King Injo a political Revolt against Gwanghaegun. The palace was also attacked by the Manchu Qing but throughout its history of reconstruction and repair has remained faithful to its original design. Changdeokgung was the site of the royal court and the seat of government until 1868, when the neighboring Gyeongbokgung was rebuilt. Korea's last Emperor, Sunjong lived here until his death in 1926. Other members of the former Royal family were permitted to live in parts of the palace such as former Crown Prince Yi Un who lived in the Nakseon- jae (hall) Buildings with his wife Princess Bangja and sister Princess Deokhye until their respective deaths; this arrangement was periodically interrupted by differing Presidential orders supporting and objecting to their use of the historic facilities. The son of Yi-Un, Yi-Gu also lived in the Palace for variant intervals prior to moving to semi-permanent residence in Tokyo due to mental health issues having been unable to fully adapt to the new Korea.