The force was next created by order of Ulysses S. Grant on August 1, 1864, in response to a raid by Jubal Early and his Confederate army of 15,000 on Washington, D.C., and especially his defeat of Lew Wallace at the Battle of Monocacy Junction. The new Army of the Shenandoah was composed of the Union VI Corps (commanded by Horatio G. Wright), XIX Corps (William H. Emory), and George Crook's Army of West Virginia (VIII Corps). It was placed under Sheridan's command with orders to repel Early, deal with Confederate guerillas, and press on into the Shenandoah Valley in Virginia.