Lee participated in the 1862 Peninsula Campaign, notably during the Battle of Seven Pines on May 31 and June 1, the Battle of Savage's Station on June 29, during the Seven Days Battles from June 25 to July 1, and the Battle of Malvern Hill also on July 1. He briefly served in the 4th Virginia Cavalry in July, was promoted to colonel on July 9, and assumed command of an artillery battalion of Maj. Gen. James Longstreet's Corps that same month. Under Longstreet, Lee fought in the Second Battle of Manassas that August and then Battle of Antietam on September 17, where his guns played a prominent role in defending the ground near the famed Dunker Church. The following is a summary of Lee's involvement at Sharpsburg: