During the Peninsular Campaign, the regiment took part in the Battle of Fair Oaks and the Battle of Oak Grove taking light casualties. After the failure of the Peninsular Campaign, the 7th Massachusetts withdrew with the rest of the Army of the Potomac to Fortress Monroe. On August 31, they were shipped to northern Virginia.