Ewell superbly commanded a division in Jackson's small army during the Valley Campaign, personally winning quite a few battles against the larger Union armies of Maj. Gens. Nathaniel P. Banks, John C. Frémont, and James Shields at the Battle of Front Royal and First Battle of Winchester, Battle of Cross Keys, and Battle of Port Republic, respectively. Jackson's army was then recalled to Richmond to join Robert E. Lee in protecting the city against Maj. Gen. George B. McClellan's Army of the Potomac in the Peninsula Campaign. Ewell fought conspicuously at Gaines' Mill and saw relatively light action at Malvern Hill. After Lee repelled the Union army in the Seven Days Battles, Union Maj. Gen. John Pope's Army of Virginia threatened to attack from the north, so Jackson was sent to intercept him. Ewell defeated Banks again at the Battle of Cedar Mountain on August 9 and, returning to the old Manassas battlefield, he led his division into action at Brawner's Farm on August 28. A Minie ball shattered Ewell's right leg and he lay on the ground for several hours before being found and taken away. The leg was amputated below the knee and Ewell faced a painful recovery lasting months. Although he received a wooden leg, the irregular shape of the leg stump made it difficult to fit it. On Christmas Day, Ewell slipped and fell in Richmond, aggravating his injury further.