When the Battle of Toba and Fushimi broke out and the Boshin War started in 1868, he accompanied Yoshinobu TOKUGAWA and was detained in Reigan-ji Temple (Koto Ward) in Edo.
慶応4年（1868年）に鳥羽伏見の戦いが起こり戊辰戦争がはじまると、徳川慶喜に従い江戸の霊巌寺（江東区）にて謹慎した。