In late June The Army of the Potomac marched north into Maryland, trying to stay between the Army of Northern Virginia led by Lee, and Washington D.C. The 7th Wisconsin marched 160 miles with the I Corps of the Army of the Potomac to the vicinity of Gettysburg.