During the Civil War, the Confederacy was generally able to keep the Union troops west of the Richmond and Petersburg Railroad, with the main exception being the Bermuda Hundred campaign of 1864.