Confederate Army of the Shenandoah Harpers Ferry, Virginia (modern day West Virginia). To organize and train the companies, Virginia state commander Robert E. Lee initially appointed Thomas J. Jackson to command the post. Jackson formed five regiments of infantry and a battery of artillery from the various companies, forming the basis of the Stonewall Brigade. On May 15, Joseph E. Johnston replaced Jackson as commander of Harpers Ferry and continued to receive additional regiments from throughout the Confederacy. He would eventually have four brigades of infantry and an independent regiment of cavalry, the 1st Virginia Cavalry commanded by J. E. B. Stuart. In mid-June, forces
Fourth Corps, Army of Northern Virginia Commanded by temporary Lt. General Anderson, it was made up of units that before had served around Richmond and Petersburg as part of General Beauregard's Department of North Carolina and Southern Virginia. The Fourth Corps spent the winter of 1864/5 encamped around Petersburg as part of the Army of Northern Virginia. In April the Army of the Potomac, under General Ulysses Grant, broke through the defences and successfully concluded the siege of Richmond, initiating the start of the Appomattox Campaign. The Fourth Corps retreated with the rest of General Lee's Army but was largely destroyed in the Battle of Sailor's