The Tokugawa shogunate of Japan bought her from the United States in 1867 and renamed her "Kōtetsu", but delivery was held up by the Americans until after the Imperial faction had established control over most of the country. She was finally delivered in March 1869 to the new government and had a decisive role in the Naval Battle of Hakodate Bay in May, which marked the end of the Boshin War, and the completion of the military phase of the Meiji Restoration.