The Second Battle of Winchester was fought from June 13–15, 1863, during the Gettysburg Campaign. Confederate forces led by General Richard Ewell clashed with Union forces commanded by General Robert Milroy. Ewell’s forces surrounded Winchester, captured an important Union fort, and blocked Milroy’s attempt to evacuate. The Confederate victory cleared the upper Shenandoah Valley of Union resistance and opened the way for Robert E. Lee’s invasion of Maryland and Pennsylvania.