The was fought from 4 to 10 May 1869, between the remnants of the Tokugawa shogunate navy, consolidated into the armed forces of the rebel Ezo Republic, and the newly formed Imperial Japanese Navy. It was one of the last stages of Battle of Hakodate during the Boshin War, and occurred near Hakodate in the northern Japanese island of Hokkaidō. Ezo Republic forces The naval forces of the Ezo Republic were grouped around the warship Kaiten. The fleet originally consisted of eight steamships: Kaiten, Banryū, Japanese gunboat Chiyoda, Chōgei, Kaiyō Maru, Kanrin Maru, Mikaho and Shinsoku. However, Kaiyō Maru and Shinsoku had been lost in a previous engagement in front of Esashi, and Kanrin Maru had been captured by Imperial forces after suffering damage in bad weather. The loss of these three major units seriously weakened the Ezo Republic side. Imperial forces For the operation, an Imperial Japanese Navy fleet had been rapidly constituted around the recently acquired ironclad warship Kōtetsu (the former CSS Stonewall), which had been purchased from the United States. Other Imperial ships were Kasuga, Hiryū, Teibō No.1, , and Mōshun, which had been supplied by the domains of Saga, Chōshū and Satsuma to the newly formed Meiji government in 1868. The nascent Imperial government started with a much weaker navy than that of the Ezo Republic, both in terms of vessel strength, unity (most of its ships were borrowed from Western domains), and training. However the loss of two major units on the Ezo side previous to the main action (Kaiyō Maru and Kanrin Maru), and most of all, the incorporation of the revolutionary Kōtetsu since April 1868 on the Imperial side (a ship originally ordered by the Tokugawa shogunate but withheld by the United States during the main conflict under a policy of neutrality taken by foreign nation and finally delivered to the newly formed government), turned the tables. In addition, the Imperial government received the support of two transportation ships chartered by the United States for the transportation of its troops. Combat [[Image:ChoyoSinking.jpg|thumb|200px|left|Banryū destroying the Imperial warship Chōyō in the 1869 Naval Battle of Hakodate Bay.]] The Imperial fleet supported the deployment of troops on the island of Hokkaidō, destroyed onshore fortifications and attacked the rebel ships. On 4 May Chiyoda was captured by Imperial forces after having been abandoned in a grounding and on 7 May Kaiten was heavily hit and put out