The 5th New York Cavalry suffered significant casualties on July 6 in the Battle of Williamsport (also known as Battle of Hagerstown) in Hagerstown, Maryland, (near the road to Williamsport) as part of Meade's attempt to prevent the escape of Lee's army.