More on KentOnline
Gillingham were denied anything from their trip to Bristol Rovers after conceding two late goals.
Captain Josh Wright put the Gills ahead just after the hour mark but Rovers levelled with seven minutes left.
Then, in the final minute, Ellis Harrison pounced to win it for Rovers.
Reaction: It's a mental thing says the Gills boss. Click here for his comments.
Justin Edinburgh’s Gills were looking to end a run of 23 games, in all competitions, without keeping a clean sheet and until the closing stages it looked as though that run would be ended.
With just one win in seven before Saturday’s game the Gills were determined to get their promotion chase on track.
In the end they had nothing to show for their efforts after crumbling late on.
There was a change in goal for the Gills with Jonathan Bond back between the sticks after recovering from injury.
Ryan Jackson returned to the starting line-up and striker Frank Nouble dropped to the bench. Nouble was soon involved, however, replacing Cody McDonald after he went off with a blow to the face.
The home side took charge early on but were unable to capitalise on a couple of corners. Gillingham, playing a 4-2-3-1 formation, grew into the half but were unable to test home keeper Kelle Roos sufficiently.
His only real save of the first 45 minutes came from Jackson’s low shot. Roos claimed the ball at the second attempt, just as Scott Wagstaff looked to pounce.
Rovers had the best of the first-half chances. Lee Brown put a header just wide from an inviting Chris Lines cross but Bond wasn’t overworked, either, as both defences did their job.
Gillingham had five corners in the half but couldn’t make the most of them. Three of those came at the end of the half, in quick succession, with Nouble heading the third well wide.
Rovers put a couple of efforts wide at the start of the second half and Charlie Colkett hit a free-kick into Bond’s arms.
Bond was a lot busier in the second half, getting down well to save a Lines free-kick and then tipping a shot from Brown over the bar after a corner had been played to the edge of the box.
After withstanding the pressure, the Gills went head. A Jackson throw fell kindly to Wright and he guided a low shot through a crowded area.
Herd and Dack had half-chances to extend the lead soon after but Rovers levelled in the 83rd-minute. Lines ran on to a ball through the middle and with just Bond to beat he picked his spot.
And in the final minute Rovers went ahead when substitute Harrison met a cross at the far post and squeezed the ball home.
Bristol Rovers: Roos, Leadbitter, Brown, Lockyer, Hartley, Taylor, Lines, Clarke (Bodin 46mins), Sinclair (Montano 68mins), Gaffney (Harrison 59mins), Colkett. Subs not used: Mildenhall, James, Boateng, Clarke-Salter.
Gillingham: Bond, Jackson, Konchesky, Oshilaja, Ehmer, Herd, Wright, Wagstaff (Byrne 63mins), Hessenthaler, Dack, McDonald (Nouble 22mins). Subs not used: Nelson, Pask, Knott, Oldaker, List.
Attendance: 9,489 (389 away)