ravine, which screened his movement from the Federals on the turnpike. As Hayes came up the road past the ravine, Breckinridge ordered a charge and the Confederates assaulted Hayes's exposed flank and sent his division reeling in retreat, taking many casualties. Thoburn was supposed to support Mulligan's right flank in the attack, but because of the topography of the battlefield, he became separated from Mulligan and saw little action during the battle. Gordon's Confederates exploited the gap in the Union line to get on Mulligan's right and when Hayes's division broke, Mulligan found himself caught between two Confederate divisions. Mulligan immediately ordered a withdrawal, and was mortally wounded as he tried to rally his troops and prevent a full rout during the retreat. The Confederate infantry pressed the fleeing Federals all the way back through Winchester and the cavalry kept at their heels well into West Virginia. Averell's cavalry had attempted to flank the Confederates as ordered but ran headlong into Vaughn's cavalry on the Front Royal Pike. The shock of the unexpected Confederate cavalry attack sent the Federal cavalry racing towards Martinsburg. When the fleeing cavalry encountered the retreating wagon and artillery trains north of Winchester it incited a panic among the Federal teamsters, causing many to abandon their charges as they got caught up in retreat. Many of the wagons had to be burned to prevent them from falling into Confederate hands. As night fell the Confederate cavalry swept the countryside looking for Federals who had become lost from their units in retreat. Most of the Federals spent the night out in the rain, scattered across countryside, trying to evade capture. Aftermath The victory marked the high-water point for the Confederacy in the Valley in 1864. Crook's broken army retreated to the Potomac River and crossed near Williamsport, Maryland, on July 26. With the Shenandoah Valley clear of Union forces, Early launched a raid into northern territory, the last made by a substantial Confederate force during the war, burning Chambersburg, Pennsylvania as retribution for David Hunter's burning of civilian houses and farms earlier in the campaign. (Hunter had also burned the Virginia Military Institute in Lexington, but Early's orders to his cavalry under John McCausland did not mention this as a justification.) They also attacked Union garrisons protecting the Baltimore and Ohio Railroad near Cumberland, Maryland. As a result of this defeat and McCausland's burning of Chambersburg on