After about five more small engagements over the next three days, with the Army of Northern Virginia melting away, and Union forces surrounding them, General Lee surrendered the Army of Northern Virginia to General Grant on April 9, 1865 at Appomattox Court House, Virginia, about 90 miles west of Richmond.