Replacing Takamori, the general manager of military affairs then, he became Kyoto shugoshoku (Military governor of Kyoto) on February 15, 1864 and changed his post from Echizen no kami (Governor of Echizen Province) to Okura no taifu (a senior assistant minister of the Ministry of Treasury) the following day.
元治元年（1864年）2月15日には軍事総裁職に転じた容保に替わり京都守護職に就任し、翌日、越前守から大蔵大輔に転任する。