By the way the Kyoto Imperial Palace where the Emperor lived until the last days of the Edo bakufu (Japanese feudal government headed by a shogun), was established as the Imperial Palace by Emperor Kogon in 1331, where the Emperor used to use Tsuchimikado Higashi Toin Palace as his Satodairi (temporally palace).
なお、幕末まで天皇が住んだ京都御所は、1331年に光厳天皇が里内裏だった土御門東洞院殿を皇居として定めたものである。