Cody McDonald scored his third goal in four League Two games since re-joining Gillingham on loan to give them victory against Bradford.
The League Cup finalists had started well, with James Hanson heading narrowly over from a Kyel Reid cross.
Gills keeper Stuart Nelson produced a fantastic double save to prevent Gary Jones and Nakhi Wells from scoring.
However McDonald latched onto Deon Burton's lobbed pass and fired home to score the only goal of the game.
VIEW FROM THE DRESSING ROOM
Gillingham striker Cody McDonald told BBC Radio Kent:
"It's great to get on the scoresheet again but credit goes to the lads who had to grind it out today.
"My personal performance wasn't as great as I would like in the first half, but to come here and win isn't easy and it's a massive positive for us.
"You're not going to get loads of chances so it's important you stick some away. Both teams were solid - thankfully I managed to stick mine away.
"Our main aim is to get promoted but once you've done that you want to win the league and go out as winners. Hopefully we can cement that place."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The final whistle goes and the game is over.90:00 +3:28
Corner taken by Gary Jones from the left by-line, Leon Legge manages to make a clearance.90:00 +3:11
Inswinging corner taken from the left by-line by Gary Jones, clearance by Leon Legge.90:00 +0:44
Free kick awarded for a foul by Andy Frampton on Alan Connell. Shot comes in from Nahki Wells from the free kick, Adam Barrett gets a block in.88:18
The ball is crossed by Kyel Reid, save by Stuart Nelson.85:30
Deon Burton takes a shot from just outside the penalty area clears the crossbar.82:59
Myles Weston takes a shot. Outswinging corner taken by Myles Weston. Corner taken short by Myles Weston. Short corner worked by Myles Weston. Blocked by Stephen Darby.81:49
Foul by James Hanson on Leon Legge, free kick awarded. Stuart Nelson takes the free kick.81:28
Unfair challenge on Alan Connell by Joe Martin results in a free kick. Gary Jones crosses the ball from the free kick right-footed from right wing, clearance by Leon Legge.80:29 Substitution
Substitution Alan Connell is brought on as a substitute for Tom Naylor.79:49
Anton Robinson concedes a free kick for a foul on Ryan Dickson. Free kick taken by Matt Duke.78:23 Substitution
Substitution Charlie Lee is brought on as a substitute for Cody McDonald.76:53
Kyel Reid produces a cross, Header by James Hanson from deep inside the penalty area misses to the left of the target.72:32 Substitution
Substitution (Bradford) makes a substitution, with Ryan Dickson coming on for Zavon Hines.72:32 Substitution
Substitution Curtis Good leaves the field to be replaced by Garry Thompson.72:18
Effort from just outside the area by Nathan Doyle goes over the bar.69:07
Effort from the edge of the box by Chris Whelpdale goes wide of the left-hand upright.68:37
The ball is crossed by Gary Jones, save made by Stuart Nelson.68:04
Corner taken right-footed by Gary Jones from the left by-line to the near post, clearance by Leon Legge.65:21
Foul by Matt Fish on Kyel Reid, free kick awarded. Nathan Doyle takes the free kick.
Assist by Anton Robinson.63:03 Goal scored
Goal! - Cody McDonald - Bradford 0 - 1 Gillingham A goal is scored by Cody McDonald from inside the six-yard box to the bottom left corner of the goal. Bradford 0-1 Gillingham.60:17
Shot from long range by Stephen Darby misses to the right of the target.59:37
Inswinging corner taken by Kyel Reid from the right by-line played to the near post, clearance made by Leon Legge.58:48
Nahki Wells takes the chance to get an effort at goal. Save made by Stuart Nelson.58:12
Effort from long range by Anton Robinson goes wide right of the target.55:30
Joe Martin fouled by Zavon Hines, the ref awards a free kick. Stuart Nelson takes the free kick.54:38 Substitution
Substitution Myles Weston is brought on as a substitute for Charlie Allen.51:44
Centre by Kyel Reid, James Hanson takes a shot. Save by Stuart Nelson.51:29
Chris Whelpdale takes a shot. Save by Matt Duke.50:29
Foul by Zavon Hines on Joe Martin, free kick awarded. Charlie Allen takes the direct free kick, Chris Whelpdale delivers the ball, clearance by Kyel Reid.48:06
Free kick awarded for an unfair challenge on Cody McDonald by Michael Nelson. Direct strike on goal from the free kick comes in from Deon Burton.45:01
The game restarts for the second half.45:00 +1:22 Half time
Half Time The referee calls an end to the first half.45:00 +0:41
Free kick awarded for a foul by Chris Whelpdale on Zavon Hines. Kyel Reid crosses the ball from the free kick left-footed from right wing, clearance made by Chris Whelpdale.42:56
Effort from a long way out by Kyel Reid goes wide right of the goal.39:04
Unfair challenge on Stephen Darby by Cody McDonald results in a free kick. Matt Duke restarts play with the free kick.38:27
Leon Legge fouled by James Hanson, the ref awards a free kick. Free kick taken by Stuart Nelson.36:29
Inswinging corner taken by Gary Jones.35:41
Gary Jones takes a shot. Blocked by Leon Legge. Gary Jones takes a shot. Save by Stuart Nelson. Nahki Wells takes a shot. Save by Stuart Nelson.35:12
Chris Whelpdale concedes a free kick for a foul on Nahki Wells. Direct free kick taken by Matt Duke.34:24
Leon Legge is flagged offside by the assistant referee. Matt Duke restarts play with the free kick.33:47
Foul by James Hanson on Andy Frampton, free kick awarded. Chris Whelpdale takes the free kick.33:10
Nahki Wells produces a right-footed shot from just outside the area that goes harmlessly over the bar.29:17
Cody McDonald challenges Michael Nelson unfairly and gives away a free kick. Matt Duke takes the free kick.27:37
Joe Martin gives away a free kick for an unfair challenge on Zavon Hines. A cross is delivered by Gary Jones, Nahki Wells takes a shot. Save by Stuart Nelson.25:18
Kyel Reid sends in a cross, Header on goal by James Hanson from inside the box goes harmlessly over the target.16:48
Centre by Kyel Reid, Effort from the edge of the area by Gary Jones goes wide of the left-hand upright.13:29
Corner taken by Kyel Reid, clearance by Leon Legge.12:37
Matt Fish challenges Zavon Hines unfairly and gives away a free kick. Direct free kick taken by Curtis Good.10:22
Foul by Charlie Allen on Kyel Reid, free kick awarded. Gary Jones takes the free kick.8:15
Corner taken left-footed by Kyel Reid from the right by-line, clearance by Leon Legge.7:49
Charlie Allen challenges Kyel Reid unfairly and gives away a free kick. The free kick is swung in right-footed by Gary Jones, clearance made by Andy Frampton.7:04
Joe Martin takes a shot. Matt Duke makes a save.6:27
Foul by James Hanson on Adam Barrett, free kick awarded. Free kick taken by Stuart Nelson.6:03
Anton Robinson challenges Nathan Doyle unfairly and gives away a free kick. Michael Nelson takes the free kick.5:40
Gary Jones takes a shot. Joe Martin gets a block in.4:01
James Hanson is flagged offside by the assistant referee. Indirect free kick taken by Stuart Nelson.0:51
Kyel Reid takes a inswinging corner to the near post.0:00
The referee gets the game underway.
Live data and text provided by our data suppliers