Confederate General Robert E. Lee ended his campaign at The Battle of Appomattox Court House.

He and his 26,765 troops surrendered to US Union Lieutenant General Ulysses S Grant. The war didn’t officially end until May 8th of the same year.

Source