During the Civil War, the towns of Orange and Gordonsville continued as important railroad hubs and hospital centers for the Confederacy. Confederate military companies recruited from the county included three companies of the 13th Virginia Infantry, the Gordonsville Grays, two artillery companies, one cavalry company (the Orange Rangers), and many soldiers in the 7th Virginia Infantry, Wise Artillery and 6th Virginia Cavalry. General Robert E. Lee often rode through the county and wintered the Army of Northern Virginia in Orange County during 1863-64, the Rapidan River becoming a defensive line. Cavalry raids against the railroad supply lines occurred, including several at Rapidan on the border with Culpeper County. Troops often crossed the Rapidan River at Germanna Ford near Locust Grove. After Fredericksburg fell to Union forces, Mosby's Rangers were formed and conducted some operations (as well as recovered from wounds) in Orange County; Mosby himself was once captured while waiting for a train in Beaverdam in Hanover County for travel through Orange County. The 1863 Battle of Mine Run and the 1864 Battle of Wilderness both occurred in eastern Orange County, as Union troops drove toward the Confederacy's capital. The latter became a significant turning point in the war.