Dean Saunders decision to keep faith with the same eleven who beat Lewes last time out paid dividends, as Wrexham took all three points against Grays Athletic.
Wrexham started well, and after six minutes were rewarded when some good play between Taylor and Flynn set up Fairhurst, whose low drive found the corner of the net.
After the early pressure, Grays started to have more of the game, working hard closing Wrexham's midfield down and depriving them of space. On 20 minutes Ward spilled a free kick and got a kick in the face as he grabbed the ball at the second attempt.
On thirty minutes Grays got an equaliser, Ward punched a cross straight to Cogan, who fired home past Westwood on the goal line.
Marc Williams went close from a Jon Brown cross, but the half ended one apiece.
There were no changes made during the interval, and the game followed the same pattern. Fairhurst almost restored Wrexham's lead on 51 minutes, but his drive from 30 yards hit the cross bar and bounced to safety.
Two quick goals then put Wrexham firmly in the driving seat. Jon Brown fired a superb free kick into the top corner beyond Arnold on 55 minutes. Then two minutes later, Marc Williams crossed for Ryan Flynn to head in from close range.
Marc Williams then had a couple of chances to add to the lead, and Ashley Westwood fired over from 10 yards.
Williams was then booked after a clash with goalkeeper Arnold, taking his tally to 5 yellows.
Saunders made two substitutions on 70 minutes, Brown and Flynn making way for Baynes and McCluskey who was making his debut.
The game became scrappy again with Wrexham looking the likelier to score. However in time added on Pugh fired home from 12 yards to reduce the deficit, giving Wrexham a nervy last couple of minutes but they held firm and secured the victory.
The win moves Wrexham up to Fourth in the table ahead of the crucial visit to Burton Albion on Tuesday evening. The Dragons are now unbeaten in Ten league matches, winning Six and drawing Four.