The VIII Corps was a corps of the Union Army during the American Civil War.
The corps was initially created out of various Union commands as part of the Middle Department in the Shenandoah Valley on July 12, 1862, and was placed under the command of Major General John E. Wool. It spent most of 1862 guarding the Baltimore and Ohio Railroad lines between Baltimore, Harpers Ferry, and Winchester. The corps, then led by Robert C. Schenck, played a major role in the early stages of the Gettysburg Campaign, where elements of the corps unsuccessfully opposed Robert E. Lee's initial advance through the Shenandoah. The second division, under Robert H. Milroy, suffered heavy casualties during the Second Battle of Winchester on June 13–15, 1863, and elements of the corps also took part in the delaying action at Martinsburg a few days later. The badly battered corps withdrew to Harpers Ferry after that, playing no further role in the campaign, until it helped join in George G. Meade's pursuit of Lee following the Battle of Gettysburg.
(See Valley Campaigns of 1864 for a more detailed description of the campaigns mentioned below.)
The VIII Corps played a major part in the defense of Washington from Jubal Early at Monocacy on July 9, 1864 under the commander of Maj. Gen. Lew Wallace. The primary duty of the VIII Corps in 1864 was rear echelon duties in Maryland guarding the Baltimore and Ohio Railroad. Elements of the corps also battled Confederate cavalry as it raided across Maryland to the suburbs of Baltimore during Early's Raid on Washington. The headquarters of the department was located in Baltimore.