 Cazeneuve therefore resigned from the French army and entered the service of the "shōgun", along with Jules Brunet.He was commissioned as a captain.Cazeneuve fought in the Battle of Hakodate, in command one of the four Shogunate regiments.