In July 1864 the Battle of Monocacy was fought near Frederick, Maryland as part of the Valley Campaigns of 1864. Monocacy was a tactical victory for the Confederate States Army but a strategic defeat, as the one-day delay inflicted on the attacking Confederates cost rebel General Jubal Early his chance to capture the Union capital of Washington, D.C.