General J.E.B. Stuart's Confederate cavalry occupied Rockville on June 28, 1863, captured 150 U.S. wagons along the Washington Road, and then marched to Gettysburg. In July 1864, General Jubal Early passed through Rockville on his way to and from Washington.