He went to "Shokasonjuku", a private school run by Yoshida Shōin. There, he helped overthrow the Tokugawa shogunate in 1868. He was a commander in the "Kiheitai". This was a semi-military organization created along semi-western lines by the Chōshū domain. He was a staff officer in the Boshin War (1867 to 1868).