The Maryland campaign (or Antietam campaign) occurred September 4–20, 1862, during the American Civil War. Confederate Gen. Robert E. Lee's first invasion of the North was repulsed by the Army of the Potomac under Maj. Gen. George B. McClellan, who moved to intercept Lee and his Army of Northern Virginia and eventually attacked it near Sharpsburg, Maryland. The resulting Battle of Antietam was the bloodiest single-day battle in American history. Following his victory in the northern Virginia campaign, Lee moved north with 55,000 men through the Shenandoah Valley starting on September 4, 1862. His objective was to resupply his army outside of the war-torn Virginia theater and to damage Northern morale in anticipation of the November elections. He undertook the risky maneuver of splitting his army so that he could continue north into Maryland while simultaneously capturing the Federal garrison and arsenal at Harpers Ferry. McClellan accidentally found a copy of Lee's orders to his subordinate commanders and planned to isolate and defeat the separated portions of Lee's army. While Confederate Maj. Gen. Stonewall Jackson surrounded, bombarded, and captured Harpers Ferry (September 12–15), McClellan's army of 102,000 men attempted to move quickly through the South Mountain passes that separated him from Lee. The Battle of South Mountain on September 14 delayed McClellan's advance and allowed Lee sufficient time to concentrate most of his army at Sharpsburg. The Battle of Antietam (or Sharpsburg) on September 17 was the bloodiest day in American military history with over 22,000 casualties. Lee, outnumbered two to one, moved his defensive forces to parry each offensive blow, but McClellan never deployed all of the reserves of his army to capitalize on localized successes and destroy the Confederates. On September 18, Lee ordered a withdrawal across the Potomac and on September 19–20, fights by Lee's rear guard at Shepherdstown ended the campaign. Although Antietam was a tactical draw, it meant the strategy behind Lee's Maryland campaign had failed. President Abraham Lincoln used this Union victory as the justification for announcing his Emancipation Proclamation, which effectively ended any threat of European support for the Confederacy. Background Military situation The year 1862 started out well for Union forces in the Eastern Theater. George B. McClellan's Army of the Potomac had invaded the Virginia Peninsula during the Peninsula Campaign and by June stood only a few miles outside the Confederate capital at Richmond. But, when Robert E. Lee assumed command