箱館戰爭
In October 1868, Hijikata and Ōtori Keisuke led Shogunate forces to occupy the fortress of Goryōkaku in the Battle of Hakodate, and continued to eliminate local resistance. When the short-lived Ezo Republic was founded in December, Hijikata was made a Deputy Defence Minister (Vice-minister of the Army). Imperial troops continued to attack by land and sea.