Moving up the Shenandoah Valley in pursuit of Jackson's army, Maj. Gen. John C. Fremont's army encountered Maj. Gen. Richard S. Ewell's division at Cross Keys on June 8. Brig. Gen. Julius Stahel's brigade, attacking on the Union left, was stunned by a surprise volley from Trimble's command and driven back in confusion. After feeling out other parts of the Confederate line, Fremont withdrew to the Keezletown Road under protection of his batteries. The next day, Trimble's and Patton's brigades held Fremont at bay, while the rest of Ewell's force crossed the river to assist in the defeat of Brig. Gen. E. Tyler's command at Port Republic.