Born in 1836 into a gokenin family of the Edo Shogunate, he studied navigation at the Nagasaki Naval Training Institute and went to study in the Netherlands, mastering modern naval technology. In the Boshin War (1868) he led the shogunal navy's defecting fleet as vice-president of the shogunal navy, crossed to Ezo (Hokkaido), and made Goryōkaku his base. In 1869 he was elected president of the Republic of Ezo (comprising Matsumae domain and former shogunate forces), but surrendered to the new government forces (Battle of Hakodate). After surrendering he was imprisoned, but was released when the Meiji government recognised his talents as a naval engineer. He subsequently held important posts including Navy Minister, Minister of Communications, and Minister of Agriculture and Commerce, and contributed to concluding the Treaty of Saint Petersburg (1875) exchanging Sakhalin and the Kuril Islands with Russia. He is known as a symbol of conversion who contributed to Meiji technology and diplomacy. He died in 1908, aged 72.