Having had command of the Army of the Potomac for only three days, and having to deal with a Confederate army which had already invaded Pennsylvania, Meade quickly reorganized his forces. He moved the army towards Gettysburg, Pennsylvania to stop Robert E. Lee's Army of Northern Virginia.