York City's first league game on a Sunday in front of 4,009 fans ended in a 2-1 victory for the Minstermen, with Jon Parkin and Lee Bullock the scorers, before Michael Welch replied for the visitors.
The victory put City back in the play-off zone.
Assisted by a strong gusting wind in the first half, City had the visitors back pedalling from the start.
Graham Potter was inched wide from 25 yards, before Parkin fired York in front on five minutes. Tom Cowan's cross from the left found Parkin whose first effort struck Steve Macauley, but fell kindly for the striker to hit home left-footed from eight yards.
Boosted by the early goal, the Minstermen totally dominated the first half creating a number of chances. Parkin had a header saved, before on-loan debut striker Anthony Shandran hit a low 20-yard effort inches wide.
Potter's superb run and cross found Parkin, who was unlucky to see his glancing header slide narrowly wide.
Macclesfield's sole effort in the opening period was a shot from Neil Ross which Richard Cooper blocked on the line.
Just before the break Shandran broke from midfield and passed to Potter whose shot was deflected and gathered by Steve Wilson under the bar. Then Ross was perhaps fortunate to stay on the field following a late lunge on Chris Smith on 45 minutes.
York doubled their lead on 53 minutes when Cooper's cross hung in the wind and fell kindly for Bullock, who strode forward and unleashed a rising left-foot drive from 15 yards into the far corner.
Macclesfield then gained control and scored a stunning goal through Welch on the hour. The tall midfielder hit a screamer from over 30 yards which gave Michael Ingham no chance in the City goal.
Moments earlier sub David Eaton wasted a simple chance within seconds of coming on to the field.
In the closing five minutes York hung on whilst the visitors were unlucky not to equalise. Welch saw his header beat Ingham but came back off the bar.
Then Darren Dunning's curling free-kick was inches wide, before right at the death Eaton flashed an effort wide from the edge of the box