The winner came early in the second half but was no more than the visitors deserved after they held the upper hand throughout the contest.
The result leaves Northampton without a victory in the last 10 games and looking over their shoulders at the relegation zone.
Macclesfield dominated the first half with Tyrone Barnett denied by Chris Dunn and then having a goalbound shot blocked by Marcus Hall. At the other end, Jose Veiga saved bravely at John Johnson's feet but then saw Shaun Harrad flash a shot wide following an error from Paul Morgan.
Harrad then volleyed wide at the far post but Macclesfield made the breakthrough nine minutes after the restart when Sam Wedgebury's cross was only partially cleared and Daniel drove home from the edge of the box.
Source: PA
Source: PA