Neil Harris made three changes to the team that beat Grimsby 2-1 in midweek. Cheye Alexander, whose excellent cross set up the winning goal on Tuesday, came into the starting XI in the place of David Tutonda. Aiden O'Brien and Shaun Williams also came into the line-up as Tom Nichols and Alex MacDonald were named among the substitutes.
O'Brien had a chance in the opening seconds. After the ball was played in the air, it eventually fell to the Shrewsbury loanee in a promising area. He brought the ball under control as a pocket of space opened up. The forward opted to shoot from over 20 yards, but his attempt left Richard O'Donnell untested as it cleared the crossbar.
Dom Jefferies had a great opportunity in the 15th minute. The ball sat perfectly for the midfielder following a blocked shot and he struck it well from around six yards out. He tried to beat O'Donnell with a low-driven effort, but the Rochdale keeper did well to get down and save with his feet.
The hosts had a great chance to go in front as a through ball appeared to be running out for a goal-kick, but Ian Henderson kept it alive and he attempted to prod it beyond Glenn Morris. The Gillingham goalkeeper did well to save it, but the rebound fell into a central area inside the penalty area. Fortunately, a Gills player was the first to it and cleared.
Seconds later, Williams came close with an effort from distance. It had O'Donnell at full stretch as the ball went wide of his right post following an excellent strike from all of 30 yards.
In the 23rd minute, Oli Hawkins put Gillingham in front. Robbie McKenzie's throw into the box came back to him, and he curled a testing cross into the penalty area. The hosts could not deal with it as it fell to Hawkins inside the six-yard box following a flick from Dieng. He did well to adjust himself as he prodded the ball beyond O'Donnell.
Toby Mullarkey came close to giving Rochdale an immediate response. He found himself in space 25 yards from the goal, and he decided to try his luck. His shot had plenty of power as Morris had to get across to keep it out.
George Lapslie came close in the 38th minute. The ball was headed into the path of the midfielder, who struck a left-footed half-volley goalward. Unfortunately, he could not make clear contact with the effort and O'Donnell got down to push it wide for a corner.
From the resulting corner, the visitors came close. Williams curled his corner towards the back post as it caused Rochdale problems. Hawkins and Conor Masterson were both there trying to get the definitive touch, but they were unable to direct it on target.
In the 43rd minute, the hosts were forced into a change in goal as O'Donnell went off with knock and was replaced by Jake Eastwood.