As Gen. Robert E. Lee's Army of Northern Virginia advanced into Maryland, Lee expected that the Union garrisons that potentially blocked his supply line in the Shenandoah Valley, at Winchester, Martinsburg, and Harpers Ferry, would be cut off and abandoned without firing a shot (and, in fact, both Winchester and Martinsburg were evacuated).