Tokugawa Yoshinobu
Some groups continued to resist after this formal surrender but were defeated in the Battle of Ueno in northeastern Tokyo, on 4 July 1868. The city was fully under control in July 1868. During that time, Tokugawa Yoshinobu had been under voluntary confinement at Kan'ei-ji temple.