After the battle the 2nd Maryland became attached to Frye's Brigade, Heth's Division, Hill's Corps, and on June 13 they took part in the Battle of White Oak Swamp. On June 18 the regiment crossed the James River and went by rail to Petersburg, where they set up defensive breastworks. The Siege of Petersburg was underway, and for the next few months the men lived in their trenches, exchanging occasional fire with the Union attackers.