Ben Tomlinson's brace helped Macclesfield secure a vital three points at the expense of Northampton.
The former Worksop striker put the Silkmen ahead, blasting home from the edge of the area after a fluffed clearance by keeper Sam Walker.
Marlon Jackson then levelled for Northampton from 10 yards before Tomlinson struck again with a hip-high volley from the edge of the box.
Tomlinson then released substitute Colin Daniel, who fired in the third.
VIEWS FROM THE DRESSING ROOM
Macclesfield Town manager Gary Simpson told BBC Radio Manchester:
"I thought they defended unbelievably but we kept going second-half and I thoroughly thought we deserved it.
"The lad (Ben Tomlinson) has still got a lot to learn but he's enthusiastic, brave and knows where the net is.
"I got George (Donnelly) in and I always wanted to play the pair of them and today I thought they complimented each other well."
Northampton Town manager Gary Johnson told BBC Radio Northampton:
"I think for an hour, the game could've gone either way. We're very disappointed because we didn't really give it enough of a go in the last 20 minutes.
"If you give the ball away as much as we did, then they're going to be dangerous.
"We didn't create enough opportunities to win the game. I felt we only had to show a bit of quality in the final third, but we didn't show that."