The Battle of Gettysburg was located in Gettysburg, Pennsylvania and Adams County, Pennsylvania. Confederate General Robert E. Lee launched his second invasion of the Northern territory, hoping to score politically meaning victories, take the war out of Virginia, and gather supplies for his army. Lee pushed against Union General Joseph Hooker, and then General George Meade, who replaced Hooker in late June. After colliding in Gettysburg, Pennsylvania on July 1, the Confederates were able to gain the advantage on the Union, sweeping the west and north of the vicinity, but were unable to secure the south. The next day, Lee failed once again to secure the heights of the south. On July 3, Lee attacked the Union on Cemetery Ridge, known as Pickett’s Charge. Lee’s second invasion of the Union failed, resulting in 51,000 killed, wounded, captured, or missing soldiers after Gettysburg. The Union claimed the decisive victory against the Confederates.