The Valley District was an organization of the Confederate States Army and subsection of the Department of Northern Virginia during the American Civil War, responsible for operations between the Blue Ridge Mountains and Allegheny Mountains of Virginia. It was created on October 22, 1861, and was surrendered by the authority of Gen. Robert E. Lee at Appomattox Court House on April 9, 1865.
The Valley District was created to administer various home guard and military units and armies which operated in the Shenandoah Valley. The first forces organized in this area prior to the creation of the Valley District were the Forces In and About Harper's Ferry, Virginia, which existed from April 18, 1861, to June 15, 1861. The Forces In and About Harper's Ferry were originally under the Virginia State Militia, and were placed under three commanders during that time. Maj. Gen. Kenton Harper (Virginia State Militia) commanded from April 18 to April 28, then command fell to Col. Thomas J. "Stonewall" Jackson's (Virginia State Militia) from April 28 to May 24, and finally the forces were transferred to the Confederate States Army and Brig. Gen. Joseph E. Johnston from May 24 to June 15, 1861.
From June 15 to October 22, military organization in the Shenandoah Valley came under local leadership until the Department of Northern Virginia. It was created on October 22, 1861, as Johnston prepared defenses in Northern Virginia. The Valley District was defined as the area between the Blue Ridge Mountains, the Alleghenies and extended south from the Potomac River to the vicinity of Staunton, Virginia and covered an area of roughly five thousand square miles.