Match ends, Wrexham 2, Macclesfield Town 3.
Kristian Dennis took his tally to 17 goals for the season in the National League as Macclesfield secured their fourth win in a row.
Dennis scored with a deflected shot to give Macclesfield the lead but Connor Jennings equalised from close range.
Striker Dennis restored the lead soon after the restart after a mistake in the home defence, and Danny Whitaker converted from a counter attack.
James Gray's fine strike gave Wrexham hope but the visitors held on to win.
Wrexham manager Gary Mills told BBC Radio Wales: "We've been winning games of late and now we know the feeling of what it is to lose again and it's not nice.
"I thought we deserved something out of it and it didn't quite happen for us. Fair play to Macclesfield they've come here and played well and made it difficult for us.
"But these things happen and we'll go again next week."
- 3NewtonBooked at 45mins
- 12CarringtonSubstituted forCatonat 84'minutes
- 15EvansSubstituted forGrayat 70'minutes
- 16YorkSubstituted forO'Brienat 60'minutes
- 8LewisSubstituted forHallsat 90+2'minutes
- 14DennisBooked at 25minsSubstituted forSampsonat 90+4'minutes
- 18WhiteheadSubstituted forRoweat 79'minutes
- Michael Salisbury
- Shots on Target
Second Half ends, Wrexham 2, Macclesfield Town 3.
Attempt missed. Danny M. Rowe (Macclesfield Town) left footed shot from outside the box misses to the left.
Substitution, Macclesfield Town. Jack Sampson replaces Kristian Dennis.
Foul by James Gray (Wrexham).
Tony Diagne (Macclesfield Town) wins a free kick.
Substitution, Macclesfield Town. Andy Halls replaces Paul Lewis.
Attempt saved. Kristian Dennis (Macclesfield Town) left footed shot from outside the box is saved.
Corner, Macclesfield Town.
Substitution, Wrexham. James Caton replaces Mark Carrington.
Foul by Tony Diagne (Macclesfield Town).
Connor Jennings (Wrexham) wins a free kick.
Offside, Wrexham. James Gray tries a through ball, but James Gray is caught offside.
Substitution, Macclesfield Town. Danny M. Rowe replaces Danny Whitehead.
Goal! Wrexham 2, Macclesfield Town 3. James Gray (Wrexham) right footed shot from outside the box to the top right corner. Assisted by Dominic Vose.
Attempt saved. Dominic Vose (Wrexham) right footed shot from outside the box is saved.
Foul by Paul Lewis (Macclesfield Town).
Dominic Vose (Wrexham) wins a free kick.