The IV Corps, Army of the Potomac, was created on March 13, 1862, and placed under the command of Erasmus D. Keyes, who had commanded a brigade at First Bull Run.
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.