In early 1865, the Union Army began marching through the state of Virginia, pushing back the Confederate forces. In hopes of uniting with more Confederate troops in North Carolina, General Robert E. Lee and the Confederate Army abandoned the capital of Richmond and retreated. However, the Union Army soon cut off their retreat and they were forced to stop at Appomattox, Virginia. General Grant and the Union Army had the Confederates surrounded. The Confederates were low on supplies, many soldiers were deserting, and they were greatly outnumbered. Upon looking at the conditions and the odds, General Lee felt he had no choice but to surrender.