Tokugawa Iemochi
Towards the end of the shogunate, however, after centuries of the Emperor having very little say in state affairs and being secluded in his Kyoto palace, and in the wake of the reigning "shōgun", Tokugawa Iemochi, marrying the sister of Emperor Kōmei (r. 1846–1867), in 1862, the Imperial Court in Kyoto began to enjoy increased political influence. The Emperor would occasionally be consulted on various policies and the shogun even made a visit to Kyoto to visit the Emperor. Government administration would be formally returned from the "shogun" to the Emperor during the Meiji Restoration in 1868.