Southend United returned to the top of League Two as they held on for a narrow victory at the Priestfield Stadium.
Liam Dickinson fired Southend ahead on nine minutes with a low left-foot shot.
Paul Sturrock's Shrimpers then doubled the lead on the half hour when, from JP Kalala's low left-wing cross, the ball went in off home defender Joe Martin in a scramble of legs in the six-yard box.
Gavin Tomlin rifled a 15-yard shot into the top corner late on, but the home side were unable to force an equaliser.
Southend's victory ended a run of three defeats in four matches, but a fourth straight defeat for Andy Hessenthaler's Gills denied them the chance to return to the play-off zone.
VIEWS FROM THE TRAINING GROUND
Gillingham manager Andy Hessenthaler told BBC Radio Kent:
"It was the same old story in the first half, making errors and making it very difficult for ourselves.
"They're basic errors that shouldn't happen. When you're on a bad run, that's what happens.
"We're not seeing danger and we're getting punished for every error at the moment.
"You've got to give the boys a lot of credit and you've got to think about playing them. Maybe that's the route - get the young boys in and get them playing. They play with no fear, they give you everything and they listen."
Southend manager Paul Sturrock told BBC Essex:
"I think it proved tonight, that what I've tried to preach to these players works for us. The first half performance was different class.
"Everybody, to the letter of the law, played to the gameplan, and the boys worked very, very hard.
"We tired, which is always going to be a feature when you press so high up the football pitch.
"You've got to give credit to Gillingham, they changed a wee bit and tried to pass round us, so it made it more difficult."
- 28 Gazzaniga
- 03 Frampton (Essam - 76' )
- 06 Richards
- 12 Martin
- 15 Lawrence (Evans - 46' )
- 18 Jackman
- 10 Weston
- 19 Montrose (Payne - 46' )
- 09 Kedwell
- 33 Kuffour
- 39 Tomlin
- 26 Hawkes
- 22 Essam
- 24 Evans
- 07 Whelpdale
- 08 Payne
- 01 Morris
- 02 Clohessy
- 06 Bilel
- 12 Ferdinand Booked
- 15 Phillips
- 16 Prosser
- 23 Barker
- 08 Timlin
- 14 Martin (Hall - 66' )
- 19 Kalala
- 22 Dickinson Booked (Sampson - 85' )
- 03 Gilbert
- 04 Hall
- 07 Grant
- 09 Harris
- 26 Sampson
Live Text Commentary
Full Time The final whistle goes and the game is over.90:00 +5:13
Shot by Curtis Weston. Blocked by Jack Sampson.90:00 +1:41
The assistant referee signals for offside against Jack Sampson. Indirect free kick taken by Paulo Gazzaniga.89:42
Curtis Weston takes a shot. Save by Glenn Morris.88:22
Ryan Hall gives away a free kick for an unfair challenge on Gavin Tomlin. Jack Evans takes the free kick.86:07
Curtis Weston provided the assist for the goal.86:07 Goal scored
Goal! - Gavin Tomlin - Gillingham 1 - 2 Southend Gavin Tomlin scores a goal from just inside the penalty area to the top right corner of the goal. Gillingham 1-2 Southend.85:23
Corner taken by Danny Jackman from the left by-line, clearance by Bilel Mohsni.84:23
Paulo Gazzaniga takes the direct free kick.84:23 Substitution
Substitution Jack Sampson comes on in place of Liam Dickinson.84:23 Booking
Booking Booking for Liam Dickinson for unsporting behaviour.84:19
Liam Dickinson gives away a free kick for an unfair challenge on Garry Richards.83:59
Ryan Hall produces a left-footed shot from just outside the box that goes wide left of the goal.82:02
Liam Dickinson gives away a free kick for an unfair challenge on Connor Essam. Paulo Gazzaniga restarts play with the free kick.79:53
Ryan Hall gives away a free kick for an unfair challenge on Garry Richards. Paulo Gazzaniga takes the free kick.76:53
Gavin Tomlin is flagged offside by the assistant referee. Glenn Morris restarts play with the free kick.75:55 Substitution
Substitution Connor Essam is brought on as a substitute for Andy Frampton.69:51
Jack Payne concedes a free kick for a foul on Bilel Mohsni. Direct free kick taken by Michael Timlin.68:53
The assistant referee signals for offside against Liam Dickinson. Paulo Gazzaniga restarts play with the free kick.67:30
Bilel Mohsni produces a right-footed shot from a long way out which goes wide left of the goal.
Substitution Ryan Hall is brought on as a substitute for David Martin.65:20
Gavin Tomlin takes a shot. Save made by Glenn Morris.61:29
The assistant referee signals for offside against Liam Dickinson. Paulo Gazzaniga takes the indirect free kick.59:38
Luke Prosser challenges Jo Kuffour unfairly and gives away a free kick. Jack Payne takes the direct free kick. Gavin Tomlin fouled by Michael Timlin, the ref awards a free kick. Free kick taken by Danny Jackman. Danny Jackman produces a drilled left-footed shot from 25 yards. Chris Barker gets a block in.58:48
Unfair challenge on Garry Richards by Michael Timlin results in a free kick. Garry Richards takes the free kick.56:47
Curtis Weston challenges JP Kalala unfairly and gives away a free kick. Chris Barker takes the direct free kick.55:41
Headed effort from deep inside the area by Garry Richards misses to the right of the goal.55:07
Handball decision goes against Chris Barker. Jack Payne takes the free kick.49:26
Danny Jackman takes the free kick.49:26 Booking
Booking Kane Ferdinand goes into the referee's book.49:15
Kane Ferdinand gives away a free kick for an unfair challenge on Jack Payne.46:18
Inswinging corner taken left-footed by Danny Jackman from the right by-line, clearance by Chris Barker.45:22
Effort on goal by David Martin from outside the box goes harmlessly over the bar.45:01
The referee gets the second half started.45:01 Substitution
Substitution Jack Evans replaces Matt Lawrence.45:01 Substitution
Substitution Lewis Montrose leaves the field to be replaced by Jack Payne.45:00 +1:06 Half time
Half Time The ref blows to signal half-time.39:38
Unfair challenge on Kane Ferdinand by Lewis Montrose results in a free kick. Free kick crossed left-footed by Michael Timlin, clearance made by Garry Richards.38:27
Foul by Liam Dickinson on Garry Richards, free kick awarded. Direct free kick taken by Garry Richards.34:37
Foul by Lewis Montrose on Kane Ferdinand, free kick awarded. Michael Timlin takes the free kick.34:23
JP Kalala takes a shot. Blocked by Jo Kuffour.33:05
Andy Frampton fouled by Liam Dickinson, the ref awards a free kick. Paulo Gazzaniga takes the free kick.30:11
Assist on the goal came from David Martin.30:11 Goal scored
Goal! - Joe Martin - Gillingham 0 - 2 Southend Joe Martin scores an own goal from 6 yards. Gillingham 0-2 Southend.25:19
JP Kalala concedes a free kick for a foul on Lewis Montrose. Free kick crossed by Danny Jackman.25:01
JP Kalala challenges Lewis Montrose unfairly and gives away a free kick. Free kick taken by Curtis Weston.24:14
Effort on goal by Lewis Montrose from 25 yards. Save by Glenn Morris.20:48
Bilel Mohsni concedes a free kick for a foul on Andy Frampton. Paulo Gazzaniga restarts play with the free kick.19:23
Inswinging corner taken left-footed by Danny Jackman from the right by-line, Bilel Mohsni manages to make a clearance.17:40
Liam Dickinson gives away a free kick for an unfair challenge on Matt Lawrence. Garry Richards restarts play with the free kick.15:42
Curtis Weston sends in a cross, blocked by David Martin.15:02
Gavin Tomlin fouled by Kane Ferdinand, the ref awards a free kick. Danny Jackman takes the direct free kick.13:14
Shot by Bilel Mohsni. Save by Paulo Gazzaniga.9:47
Assist on the goal came from Kane Ferdinand.9:47 Goal scored
Goal! - Liam Dickinson - Gillingham 0 - 1 Southend Goal scored by Liam Dickinson from close range low into the middle of the goal. Gillingham 0-1 Southend.8:44
Liam Dickinson is caught offside. Paulo Gazzaniga restarts play with the free kick.5:01
Unfair challenge on Michael Timlin by Curtis Weston results in a free kick. Glenn Morris takes the free kick.3:20
Corner taken by Danny Jackman from the right by-line, Chris Barker makes a clearance. Danny Jackman takes the outswinging corner, JP Kalala makes a clearance.2:38
The official flags Liam Dickinson offside. Garry Richards takes the free kick.0:00
The game begins.
Live data and text provided by our data suppliers