Monocacy cost Early a day's march and his chance to capture Washington. Thwarted in the attempt to take the Union capital, the Confederates retreated into Virginia, ending their last campaign to carry the war into the North. Union forces in the area pursued Early, but due to a divided military command, they were unable to defeat him. In response, Grant formed the Middle Military Division, covering Maryland, West Virginia, Pennsylvania, the District of Columbia, and the Shenandoah Valley, to coordinate the offense against Confederate forces in the valley.