Simeon Jackson's excellent brace silences high-flying Huddersfield at the krbs Priestfield Stadium.
After last weekend's defeat at Carlisle Mark Stimson made key changes to his starting personnel, Barcham, Weston and Lewis all earning recalls as the Gills boss reverted to a 4-4-2 formation.
The game started in controversial fashion, Terriers keeper Alex Smithies scything down Simeon Jackson in the third minute, after a mix-up in the visitors defence, but referee Graham decided that a yellow card was adequate punishment for the challenge.
That tackle sparked a good spell for the Gills with Rene Howe twice testing Smithies before Simeon Jackson put the home side in front, on seven minutes, in breathtaking style, collecting a low ball midway inside the Huddersfield half before blasting into the bottom right corner from 25-yards.
In the 20th minute Jordan Rhodes followed his keeper into the referee's notebook after catching Alan Julian in the face as the pair contested an over-hit through-ball.
The game boiled over five minutes later as Huddersfield winger Nathan Eccleston was red-carded after an appalling studs-up challenge on Stuart Lewis, fortunately the Gills stand-in right-back was able to continue after treatment.
Moments later the home side were unlucky not to increase their advantage, Jackman swinging in an inviting free-kick which Garry Richards could only head into the grateful arms of Alex Smithies.
On 32 minutes Andy Barcham sliced wide at the near post after quick thinking by Rene Howe sent the left winger clear from a quickly taken throw-in.
Three minutes later, Gillingham hearts were in mouths as Garry Richards stretched a leg to cut out Pilkington's cross and almost found his own net, the ball rolling inches wide of Julian's right hand upright. Soon after Lee Novak shot for goal only to see his goalbound striker rebound to safety off team mate Rhodes.
In time added on Robbie Williams became the third Terrier in the book after catching Adam Miller with an arm.
23 seconds into the second half, Gillingham doubled their advantage. Dennehy's long clearance was helped by Howe, into the path of Simeon Jackson who slotted a sublime finish beyond the oncoming Smithies and into the far corner for his second of the afternoon.
Four minutes later, Jackson turned provider, crossing with the outside of his boot but Rene Howe's header looped the wrong side of the far post. Shortly after, Stuart Lewis found himself in the ref's book after an-ill timed challenge on Pilkington.
Rene Howe find himself clean through on goal with only the keeper to beat on 59 minutes but a heavy touch gave the keeper the advantage, allowing Smithies to gather at his feet.
Danny Drinkwater tried his luck for the visitors four minutes later, firing a free-kick from the left straight at goal; fortunately Julian was alert to the danger and parried the ball to safety.
Terriers skipper Peter Clarke earned a yellow in the 76th minute for a senseless hand ball, he was joined in the book seconds later by Curtis Weston for a shirt pull on the near side touchline.
Jackson should have completed his hat-trick moments later as Oli's fine run and through ball fell to the Gills leading scorer but Smithies took the sting out of his shot before racing back to scoop the ball from underneath his crossbar.
The Terriers response was swift, Gary Roberts striking the post with a well-struck effort gave the visitors renewed hope.
Two minutes from time a loose ball came to Theo Robinson on the edge of the Gills box, he returned it with interest but Alan Julian dived swiftly to his left to make a vital save and protect his side's well deserved clean sheet.
Attendance: 5388 (415 Huddersfield)
Gillingham: Alan Julian, Stuart Lewis, Garry Richards, Darren Dennehy, John Nutter, Adam Miller, Curtis Weston, Danny Jackman, Andy Barcham, Simeon Jackson, Rene Howe (Dennis Oli 73).
Subs not used: Simon Royce, Kevin Maher, Mark Bentley, Chris Palmer, Chris Dickson, James Walker.
Huddersfield Town: Alex Smithies, Tom Clarke, Robbie Williams (Theo Robinson 74), Peter Clarke, Neal Trotman, Nathan Eccleston, Anthony Pilkington (Gary Roberts 61), Antony Kay (Michael Collins 58), Danny Drinkwater, Jordan Rhodes, Lee Novak.
Subs not used: Simon Eastwood, James Berrett, Krystian Pearce, Nathan Clarke.