During the Meiji Restoration and the Boshin War, he barricaded himself in Goryokaku castle of Hakodate City with Takeaki ENOMOTO and other, and resisted the army of the new government.
明治維新、戊辰戦争時には榎本武揚らと共に函館市五稜郭に立て篭り新政府軍に抵抗。