On April 9, 1865, General Robert E. Lee surrendered to General Ulysses S. Grant at Appomattox Court House, Virginia, effectively ending the American Civil War. This surrender came after a long campaign by Grant's forces against Lee's Army of Northern Virginia, culminating in the Battle of Five Forks and the siege of Petersburg, which destroyed Lee's army. Other Confederate armies soon followed Lee in surrendering, and the war was officially declared over on May 9, 1865, with the last Confederate forces surrendering in June.