The Civil War ended in April 1865 with the surrender of Confederate General Robert E. Lee to Union General Ulysses S. Grant at Appomattox Court House, Virginia. The terms of surrender were generous to the defeated Confederate soldiers. The war caused immense social, political, economic and technological changes in the United States and resulted in over 600,000 casualties between the Union and Confederate armies. Just five days after Lee's surrender, President Abraham Lincoln was assassinated by John Wilkes Booth, a Southern sympathizer.