<Tr> <Th_colspan="2"> Casualties and losses </Th> </Tr> <Tr> <Td> 15,849 (1,734 killed 8,062 wounded 6,053 missing / captured) </Td> <Td> 20,050--20,100 (total) </Td> </Tr> <P> The Seven Days Battles were a series of six major battles over the seven days from June 25 to July 1, 1862, near Richmond, Virginia, during the American Civil War . Confederate General Robert E. Lee drove the invading Union Army of the Potomac, commanded by Maj. Gen. George B. McClellan, away from Richmond and into a retreat down the Virginia Peninsula . The series of battles is sometimes known erroneously as the Seven Days Campaign, but it was actually the culmination of the Peninsula Campaign, not a separate campaign in its own right . </P> <P> The Seven Days began on Wednesday, June 25, 1862, with a Union attack in the minor Battle of Oak Grove, but McClellan quickly lost the initiative as Lee began a series of attacks at Beaver Dam Creek (Mechanicsville) on June 26, Gaines's Mill on June 27, the minor actions at Garnett's and Golding's Farm on June 27 and 28, and the attack on the Union rear guard at Savage's Station on June 29 . McClellan's Army of the Potomac continued its retreat toward the safety of Harrison's Landing on the James River . Lee's final opportunity to intercept the Union Army was at the Battle of Glendale on June 30, but poorly executed orders allowed his enemy to escape to a strong defensive position on Malvern Hill . At the Battle of Malvern Hill on July 1, Lee launched futile frontal assaults and suffered heavy casualties in the face of strong infantry and artillery defenses . </P>

When did the seven days battle take place