Confederate Lt. Gen. Richard S. Ewell had led two full divisions and a cavalry brigade through Maryland into Mechanicsburg, Pennsylvania in late June 1863, with the intention of seizing the state capital of Harrisburg.
In response, Union Maj. Gen. Darius N. Couch, commanding the Department of the Susquehanna, dispatched troops to the present-day borough of Camp Hill, located in the Cumberland Valley approximately 2 miles (3 km) west of Harrisburg.
Laborers hired by Couch quickly erected earthworks and fortifications along the western portion of Bridgeport, adjacent to Camp Hill.
The Federals' very first shot at the barn smashed through the upper wooden structure and sent approximately 50 Confederate soldiers running outside to their horses.
The Confederates withdrew in the direction of Carlisle to rejoin Ewell's infantry for the march southward towards Heidlersburg and Gettysburg.