The First Battle of Winchester was fought on May 25, 1862, in and around Frederick County and Winchester, Virginia during the American Civil War. The battle was a victory in Confederate Army Major General Thomas J. "Stonewall" Jackson's Campaign through the Shenandoah Valley. Jackson enveloped the right flank of the Union Army under Major General Nathaniel P. Banks. The Union forces retreated across the Potomac River into Maryland. Due to confusion among Confederate commanders, Jackson was unable to pursue Banks into Maryland.