As Stonewall Jackson marched and fought in the Shenandoah Valley, Joseph E. Johnston attacked McClellan at Seven Pines or Fair Oaks (May 31, 1862). When Johnston was wounded, Robert E. Lee took command. In the Seven Days' Battles (June 25-July 1), he seized the initiative and pressed the Federals south to the James. Lee had saved Richmond and offset Union success in the West.