 During the Gettysburg Campaign in June 1863, Confederate major general J.E.B.Stuart and Union cavalry clashed in the battles of Aldie, Middleburg, and Upperville.Confederate partisan John S. Mosby based his operations in Loudoun and adjoining Fauquier County (for a more in-depth account of the history of Loudoun County during the Civil War, see Loudoun County in the American Civil War).