Union general who was named commander of all Union armies and accepted surrender at Appomattox

Court House
Who was the leader

General Ulysses S. Grant