The Battle of Harper's Ferry was fought as a part of the Maryland Campaign for the Confederacy during the Civil War. A portion of General Robert E. Lee's army under the command of Major General Thomas "Stonewall" Jackson surrounded, bombarded, and finally captured the Union garrison at Harper's Ferry, Virginia over the course of September 12 through 15, 1862. Lee planned to secure Harper's Ferry and to capture its arsenal and garrison, as well as to secure his supply line back to Virginia. The battle was a major victory for the Confederates at a small cost, with 286 losses out of a force of 21-26,000 soldiers.