Some groups have continued to resist after the surrender at Edo but are defeated in the Battle of Ueno on July 4, 1868.