Grant received a surrender from Lee. Signatures on the hand written terms of surrender were completed and a gentleman’s handshake ended the Civil War.
Lee and his Army of Northern Virginia were all pardoned.
https://historical.ha.com/itm/military-and-patriotic/civil-war/-terms-of-surrender-letters-signed-by-confederate-general-robert-e-lee/a/674-72102.s