Early in the war, Confederate generals such as Robert E. Lee and Stonewall Jackson won battles over Union generals such as George B. McClellan and Ambrose Burnside. In 1862 and 1863, the Union Army tried to take the Confederate capital of Richmond, Virginia several times, but failed each time. Lee's army invaded the North twice, but was turned back at Antietam and Gettysburg. In the middle of war, Lincoln made the Emancipation Proclamation, which freed all slaves in the Confederacy, and started letting black men fight in the Union Army. The war started going the Union’s way after the battles of Gettysburg and Vicksburg in 1863. Gettysburg stopped Lee from invading the North, and Vicksburg gave the Union control over the Mississippi River. In 1864, a Union Army under William T. Sherman marched through Georgia and destroyed much of it. By 1865, Union General Ulysses S. Grant had taken Richmond and forced Lee to give up the fight at Appomattox.