Goals from Joe Clarke, Danny Wright and Rob Ogleby secured victory for title chasing Wrexham over Stockport at the Racecourse.
Wrexham were ahead after eight minutes when Johnny Hunt's cross found Clarke, who smashed the ball home with his left foot.
Stockport piled on the pressure and had a goal disallowed but late goals from Wright and Ogleby wrapped up the win.
Connor Jennings scored a stoppage time consolation goal for the visitors.
Stockport's late goal meant Wrexham missed out on the chance to return to the top of the table as outright leaders.
VIEWS FROM THE DRESSING ROOM
Wrexham player-manager Andy Morrell told BBC Radio Wales:
"It was difficult. I thought in the first half we were good and deserved our lead and probably could have had a couple more had we taken our chances.
"Then in the second half for 20-25 minutes we got outplayed and I haven't said that very often. I thought they were great and we couldn't keep the ball.
"But we managed to dig in and see that through and I always thought we were going to get chances against them with the threats that we pose.
They'll probably be a little bit disappointed not to come out with anything but a sign of a good team is to win when you're not playing great.
"We'll drop points to teams worse than them. They're in a bit of a false position down there because they've got some good footballers."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The referee ends the match.90:00 +3:38
Jon Macken is ruled offside. Chris Maxwell restarts play with the free kick.90:00 +1:16
Assist on the goal came from Jon Nolan.90:00 +1:16 Goal scored
Goal! - Connor Jennings - Wrexham 3 - 1 Stockport Connor Jennings scores a headed goal from inside the penalty area. Wrexham 3-1 Stockport County.90:00 +0:59
Dean Keates concedes a free kick for a foul on Connor Jennings. Jon Nolan restarts play with the free kick.87:06
Assist by Joe Clarke.87:06 Goal scored
Goal! - Robert Ogleby - Wrexham 3 - 0 Stockport Robert Ogleby scores a goal from inside the box to the bottom left corner of the goal. Wrexham 3-0 Stockport County.85:54
Dean Keates decides to take a short corner.83:48
The assistant referee flags for offside against Connor Jennings. Chris Maxwell takes the indirect free kick.81:58 Goal scored
Goal! - Danny Wright - Wrexham 2 - 0 Stockport Danny Wright finds the back of the net with a goal from deep inside the penalty box to the top right corner of the goal. Wrexham 2-0 Stockport County.81:27
Corner taken by Dean Keates from the right by-line, Richard O'Donnell makes a save.77:43 Substitution
Substitution Mark Cullen leaves the field to be replaced by Danny Whitehead.77:43 Substitution
Substitution Danny Hattersley goes off and Jon Macken comes on.77:43
Shot from inside the area by Danny Wright clears the bar.76:08 Substitution
Substitution Robert Ogleby joins the action as a substitute, replacing Andrew Morrell.74:04
Andrew Morrell challenges Jordan Fagbola unfairly and gives away a free kick. Andy Halls restarts play with the free kick.71:00
Free kick awarded for a foul by Danny Wright on Andy Halls. Richard O'Donnell takes the direct free kick.67:44
Connor Jennings challenges Joe Clarke unfairly and gives away a free kick. The free kick is swung in left-footed by Dean Keates.66:48 Substitution
Substitution Johnny Hunt goes off and Adrian Cieslewicz comes on.64:16
Sean Newton takes a shot. Save made by Chris Maxwell.
Free kick awarded for an unfair challenge on Sean Newton by Jay Harris. Sean Newton takes the direct free kick.62:16
The referee blows for offside. Chris Maxwell takes the free kick.60:21
Mark Cullen concedes a free kick for a foul on Joe Clarke. Direct free kick taken by Chris Maxwell.51:37
Dean Keates challenges Mark Cullen unfairly and gives away a free kick. Jon Nolan takes the direct free kick.50:48
Jon Nolan takes a shot. Save made by Chris Maxwell.49:15
Danny Hattersley is flagged offside by the assistant referee. Indirect free kick taken by Chris Maxwell.46:51
Martin Riley challenges Jon Nolan unfairly and gives away a free kick. James Tunnicliffe takes the free kick.45:01
The referee gets the second half started.45:00 +1:07 Half time
Half Time The whistle is blown to end the first half.43:58
Free kick awarded for a foul by Andy Halls on Andrew Morrell. Free kick taken by Neil Ashton.43:23
Inswinging corner taken by Sean Newton from the right by-line, clearance made by Stephen Wright.38:57
Unfair challenge on Jon Nolan by Jay Harris results in a free kick. Richard O'Donnell restarts play with the free kick.37:40
Corner taken right-footed by Joe Clarke from the left by-line, save by Richard O'Donnell.36:44
Matty Mainwaring produces a left-footed shot from a long way out which goes wide right of the goal.36:22
Johnny Hunt challenges Andy Halls unfairly and gives away a free kick. Direct free kick taken by Andy Halls.35:26
Sean Newton gives away a free kick for an unfair challenge on Andrew Morrell. Dean Keates takes the direct free kick.34:21
Effort from deep inside the area by Chris Westwood misses to the left of the target.33:31
Foul by Connor Jennings on Jay Harris, free kick awarded. Direct free kick taken by Stephen Wright.31:53
Danny Hattersley takes a shot. Chris Maxwell makes a save. Inswinging corner taken by Sean Newton, clearance by Neil Ashton.30:29
Corner taken right-footed by Joe Clarke, Header from close in by Danny Wright misses to the right of the goal.28:02
James Tunnicliffe fouled by Andrew Morrell, the ref awards a free kick. Free kick taken by Andy Halls.26:26
Foul by Alex Kenyon on Dean Keates, free kick awarded. Chris Maxwell takes the free kick.23:39
Inswinging corner taken by Dean Keates, clearance made by Matty Mainwaring. Inswinging corner taken by Joe Clarke from the left by-line, Unfair challenge on Richard O'Donnell by Andrew Morrell results in a free kick. Free kick taken by Richard O'Donnell.21:46
Unfair challenge on Danny Hattersley by Martin Riley results in a free kick. Sean Newton restarts play with the free kick.18:31
Unfair challenge on Joe Clarke by Danny Hattersley results in a free kick. Free kick taken by Dean Keates.13:47
The referee blows for offside against Danny Wright. Indirect free kick taken by Richard O'Donnell.12:53
Free kick taken by Joe Clarke.12:53 Booking
Booking Jon Nolan receives a caution.12:17
Foul by Jon Nolan on Dean Keates, free kick awarded.7:03
Johnny Hunt provided the assist for the goal.7:03 Goal scored
Goal! - Joe Clarke - Wrexham 1 - 0 Stockport Joe Clarke scores a goal from just outside the penalty area to the bottom right corner of the goal. Wrexham 1-0 Stockport County.4:12
Danny Hattersley takes a shot. Save made by Chris Maxwell.1:53
Foul by Mark Cullen on Chris Maxwell, free kick awarded. Chris Maxwell takes the free kick.1:13
Jay Harris takes a shot. Richard O'Donnell makes a save.0:23
Inswinging corner taken left-footed by Dean Keates, clearance by Matty Mainwaring. Corner taken left-footed by Dean Keates, save by Richard O'Donnell.0:00
The game begins.
Live data and text provided by our data suppliers