The next engagement for the men of the 2nd Iowa would take place in Dallas, Georgia, on May 27–29. The men marched close to the enemy at dusk on the 27th and established trenches and spent the night on the front, preparing for battle the next day. On the 28th, the 2nd Iowa was engaged for a short period of time, holding strong in their positions. However, during the night on the 29th, the Confederate forces launched a surprise attack against the lines that the 2nd Iowa held. After two fierce hours of fighting in the dark, the Confederate forces were turned away, unsuccessful in their efforts. The next day, the 2nd Iowa was placed in the rear of their division and did not fight again until General Johnston was forced from Dallas and made his new line of defense by Kennesaw Mountain. Throughout this time the 2nd Iowa remained under General McPherson, and actively skirmished June 10–30 on the left of the Federal forces. Eventually, Johnston and his army were forced to retreat further south. The Federal forces continued to press him closer to Atlanta. The 2nd Iowa found themselves in front of Atlanta by the middle of July. On July 22, during a skirmish in which the 2nd Iowa captured twenty prisoners and an enemy's stand of colors, General McPherson was killed and Lieutenant Colonel Howard was injured, leaving the command of the regiment in the hands of Major Matthew G. Hamill. The 2nd Iowa's division was now in the command of General Oliver O. Howard.