蝦夷共和國
The Tokugawa shogunate declined during the "Bakumatsu" ("final act of the shogunate") period from 1853 and was overthrown by supporters of the Imperial Court in the Meiji Restoration in 1868. The Empire of Japan was established under the Meiji government, and Tokugawa loyalists continued to fight in the Boshin War until the defeat of the Republic of Ezo at the Battle of Hakodate in June 1869.