On July 26, 1864, continuing their withdrawal after the Second Battle of Kernstown, the Union army crossed the Potomac to Williamsport, MD, then marched via Boonsboro to Sharpsburg.