Starting out as a brigade in late 1861, becoming a division in 1862 and finally a Corps in 1863; it served in the Eastern Theater until the ANV's surrender in April 1865.
During summer 1861, before the Army of Northern Virginia was formed, the confederate cavalry in the Eastern Theater was limited to regiments or smaller units attached to districts or larger formations.
Beauregard, Joseph E. Johnston and James Longstreet led to a promotion to brigadier general for Stuart in September 1861; and the formation of a unified cavalry brigade under his command.
Hampton and the Carolina cavalry units were moved by rail to Columbia, and fought delay-and-defense actions against Sherman.
He was in command of the corps through the evacuation of Petersburg and Richmond, and through the course of the Appomattox Campaign, until the surrender of the Army of Northern Virginia.