The corps took part in George B. McClellan's Peninsula Campaign of 1862, playing a major role in repulsing Confederate attacks at Seven Pines and Malvern Hill. After the campaign, IV Corps remained on the Peninsula, with Couch's division later detached. The corps was attached to the Department of Virginia under John A. Dix, and took part (along with VII Corps) in minor diversionary actions against Richmond during the Gettysburg Campaign. The corps was officially discontinued on August 1, 1863. Elements of IV Corps were later absorbed into XVIII Corps.