Gillingham's renaissance continued under Steve Lovell as the 10-man visitors marked his first game in permanent charge with a 1-0 win at Walsall.
Conor Wilkinson's goal on the stroke of half-time lifted the Gills out of the relegation zone as they ground out victory despite the 72nd-minute dismissal of Max Ehmer.
Walsall went close after 12 minutes as Kieron Morris flicked his boot at Erhun Oztumer's near-post corner but was denied by Gills keeper Tomas Holy's outstretched leg.
Gillingham went ahead against the run of play after 44 minutes as Walsall defender Liam Kinsella's poor touch allowed Wilkinson to nip in and poke home.
Walsall came out strongly after the break but Holy made a superb flying save to tip over Amadou Bakayoko's fierce shot in the 56th minute.
Ehmer - booked in first-half stoppage time for a foul on Morris - saw a second yellow for hacking down Walsall sub Dan Agyei 18 minutes from time.
But the 10 men comfortably held out to move the Gills out of the drop zone and leave Walsall just one point above the relegation places.