箱館戰爭
Some shogunate forces escaped to Hokkaidō, where they attempted to set up a breakaway Republic of Ezo; however, forces loyal to the Emperor ended this attempt in May 1869 with the Battle of Hakodate in Hokkaidō. The defeat of the armies of the former "shōgun" (led by Enomoto Takeaki and Hijikata Toshizō) marked the final end of the Tokugawa shogunate, with the Emperor's power fully restored.