Gen. Irvin McDowell's large corps was poised to hit Richmond from the north, and Maj. Gen. Nathaniel P. Banks's army threatened the Shenandoah Valley.Jackson was ordered by Richmond to operate in the Valley to defeat Banks's threat and prevent McDowell's troops from reinforcing McClellan.