Vinny Mukendi earned Macclesfield a precious point in their battle against relegation following a dramatic 2-2 draw with Accrington.
Reduced to 10 men on 80 minutes, after the sending off of Carl Tremarco, Macclesfield looked destined for their fifth successive defeat.
But Mukendi maintained his composure to hit home his third goal of the season from six yards in injury time.
Town took the lead in the 22nd minute when striker Tyrone Barnett flicked on a Lewis Chalmers long throw for Hamza Bensherif to lift the ball over the keeper from close range for his 11th goal of the season.
Stanley went through the gears after the break with skipper Andy Proctor grabbing the equaliser on 72 minutes with a stunning 25-yard drive.
Five minutes later they looked to have maintained their push for promotion when Terry Gornell thumped home a spot kick after he had been clipped by Tremarco inches inside the box before Mukendi struck to earn a point.