Logan Dobbs scored in the closing stages to give Gillingham their first home league win since mid-September with a 1-0 victory over managerless Swindon.
The visitors appeared to have resisted heavy pressure, and a disallowed goal, to take a share of the spoils but Dobbs' late deflected strike put Gareth Ainsworth's side among the play-off places.
Gills created the first chance of the game inside the first 60 seconds when James Brophy tested Connor Ripley.
On 22 minutes, a scramble inside the Swindon box resulted in Conor McManus diverting the ball home from close range, but a foul was spotted in the build-up which meant the effort was ruled out.
Swindon waited until the half-hour mark to create their first opening but Aaron Drinan's header following a Mitch Clark cross was guided wide.
Gills had a great chance to go ahead prior to the interval but Ronan Hale's left-footed shot was gathered by Ripley.
Drinan went close again following the break but fired an effort straight at Ollie Wright, before Hale's half-volley struck a post following a spell of prolonged pressure.
A draw looked likely until three minutes from time when a low cross was struck by Dobbs and his effort was deflected beyond Ripley.
Report supplied by the Press Association.
Ainsworth: 'The result says one-nil Gillingham'
'I think it'll be this game and then there's plenty of time to get the new manager in'
