An injury-time debut goal for Steve Brogan ended Macclesfield's 100% home record and sent Forest Green second in the Blue Square Bet Premier.
Matt Taylor found the bottom left corner from inside the area to give Rovers a first-half lead.
Matthew Barnes-Homer's close-range strike levelled things after the Silkmen's John Paul Kissock was sent off for a second bookable offence.
But Brogan's close-range effort late on gave Forest Green all three points.
VIEWS FROM THE DRESSING ROOM
Forest Green Rovers manager Dave Hockaday told BBC Radio Gloucesteshire:
"That was what football should be all about, two teams who had a go at each other. We wanted to score more than them, they wanted to score more than us and how it ended up just 2-1 I don't know.
"In the first half we were outstanding. We got caught a couple of times but we could have scored any number of goals. Second half we didn't really come out the traps and it's a poor goal from our point of view, but we kept on going and just about deserved to win.
"To come here and play a team that is so in form and banging in the goals, and to restrict them to one goal which was poor defending, I'm absolutely chuffed for the boys and it's a great three points.
"This is a good result. What would make it a great result now is if we recover and go to Hereford and get something."
Full Time The final whistle goes and the game is over.
90:00 +6:09 Booking
Booking Reece Styche is given a yellow card.
Craig Braham-Barrett challenges Matt Taylor unfairly and gives away a free kick. Direct free kick taken by Steve Brogan.
90:00 +2:49 Goal scored
Goal - Steve Brogan - Macclesfld 1 - 2 Forest Grn A goal is scored by Steve Brogan from deep inside the penalty box to the bottom right corner of the goal. Macclesfield 1-2 Forest Green.
Free kick awarded for a foul by Nathaniel Brown on Steve Brogan. Steve Brogan takes the free kick.
Free kick awarded for an unfair challenge on Craig Braham-Barrett by Reece Styche. Lance Cronin takes the indirect free kick.
Chris Stokes crosses the ball, Lance Cronin makes a save.
Substitution Reece Styche on for Kieron Forbes.
Matt Taylor is flagged offside by the assistant referee. Lance Cronin takes the free kick.
Free kick awarded for an unfair challenge on Ryan Jackson by Matt Taylor. Lance Cronin restarts play with the free kick.
Substitution Steve Brogan joins the action as a substitute, replacing Magno Vieira.
Header from close range by Matt Taylor clears the bar.
Matthew Barnes-Homer challenges Eddie Oshodi unfairly and gives away a free kick. Sam Russell takes the free kick.
Magno Vieira is adjudged to have handled the ball. Free kick taken by Tony Diagne.
Chris Stokes concedes a free kick for a foul on Ryan Jackson. Lance Cronin takes the free kick.
Substitution (Macclesfield) makes a substitution, with Chris Holroyd coming on for Waide Fairhurst.
Booking Ed Asafu-Adjaye booked.
Ed Asafu-Adjaye gives away a free kick for an unfair challenge on Craig Braham-Barrett. Keiran Murtagh takes the direct free kick.
Substitution Jack Mackreth replaces Anthony McNamee.
Assist by Anthony McNamee.
63:44 Goal scored
Goal - Matthew Barnes-Homer - Macclesfld 1 - 1 Forest Grn A goal is scored by Matthew Barnes-Homer from close in to the top left corner of the goal. Macclesfield 1-1 Forest Green.
Substitution Ben Wright leaves the field to be replaced by Yan Klukowski.
Eddie Oshodi takes the free kick.
Indirect free kick taken by Sam Russell.
Dismissal John Paul Kissock is shown a red card for second bookable offence.
Foul by Al Bangura on Arnaud Mendy, free kick awarded. Indirect free kick taken by Tony Diagne.
Shot by Ben Wright.
Booking The referee books Tony Diagne for unsporting behaviour.
Ryan Jackson produces a cross, Eddie Oshodi gets a block in.
Shot from just outside the area by Kieron Forbes goes over the bar.
Waide Fairhurst is caught offside. Free kick taken by Eddie Oshodi.
The second half kicks off.
Matt Taylor fouled by Anthony McNamee, the ref awards a free kick. Sam Russell takes the free kick.
The ball is delivered by Ryan Jackson, Effort on goal by John Paul Kissock from just inside the area clears the crossbar.
43:32 Half time
Half Time The referee calls an end to the first half.
Free kick awarded for a foul by John Paul Kissock on Chris Stokes. Sam Russell takes the indirect free kick.
Matt Taylor produces a left-footed shot from inside the area that goes over the bar.
Arnaud Mendy fouled by Matt Taylor, the ref awards a free kick. Anthony McNamee takes the direct free kick.
Ed Asafu-Adjaye concedes a free kick for a foul on Nathaniel Brown. Keiran Murtagh takes the direct free kick, The ball is crossed by Anthony McNamee.
Assist on the goal came from Ed Asafu-Adjaye.
34:18 Goal scored
Goal - Matt Taylor - Macclesfld 0 - 1 Forest Grn Matt Taylor scores a goal from inside the penalty area to the bottom left corner of the goal. Macclesfield 0-1 Forest Green.
Booking The referee cautions John Paul Kissock for unsporting behaviour.
Arnaud Mendy challenges Jamie Collins unfairly and gives away a free kick. Sam Russell takes the indirect free kick.
Corner from the left by-line taken by Jamie Collins, clearance by Nathaniel Brown.
Craig Braham-Barrett concedes a free kick for a foul on Kieron Forbes. Eddie Oshodi restarts play with the free kick.
The ball is swung over by Craig Braham-Barrett, clearance made by Jamie Turley.
Ryan Jackson challenges Magno Vieira unfairly and gives away a free kick. Strike comes in from Ben Wright from the free kick.
Inswinging corner taken by Ben Wright from the left by-line, clearance by Arnaud Mendy.
Inswinging corner taken from the right by-line by Anthony McNamee. Effort from the edge of the box by Matthew Barnes-Homer goes wide of the right-hand upright.
Shot by Arnaud Mendy. Sam Russell makes a save.
Free kick awarded for a foul by Jamie Collins on John Paul Kissock. John Paul Kissock restarts play with the free kick.
Inswinging corner taken from the right by-line by Anthony McNamee.
Anthony McNamee crosses the ball, Jamie Turley manages to make a clearance.
Magno Vieira has an effort from just inside the box that misses to the left of the goal.
Chris Stokes sends in a cross, Ed Asafu-Adjaye takes a shot from just outside the penalty area clears the crossbar. Save made by Lance Cronin.
Corner taken by John Paul Kissock from the right by-line, Nathaniel Brown takes a shot. Corner taken left-footed by Anthony McNamee. Save made by Sam Russell.
Foul by Matt Taylor on Nathaniel Brown, free kick awarded. Ryan Jackson takes the indirect free kick.
The ball is swung over by Matt Taylor, Tony Diagne manages to make a clearance.
Matthew Barnes-Homer produces a drilled left-footed shot from 12 yards. Save by Sam Russell.
Centre by Craig Braham-Barrett.
Ben Wright takes a inswinging corner to the near post, save by Lance Cronin.
The ball is delivered by Matt Taylor, blocked by Tony Diagne.
Ryan Jackson sends in a cross, Sam Russell makes a save.
The assistant referee flags for offside against Matt Taylor. Nathaniel Brown takes the indirect free kick.
Shot from just outside the box by Matthew Barnes-Homer misses to the left of the target.
Unfair challenge on Ryan Jackson by Chris Stokes results in a free kick. Lance Cronin restarts play with the free kick.
The referee blows for offside. Free kick taken by Lance Cronin.
Anthony McNamee sends in a cross, Eddie Oshodi manages to make a clearance.
Magno Vieira has a drilled shot. Save by Lance Cronin.
Kieron Forbes produces a drilled right-footed shot from inside the area and strikes the post.
Magno Vieira has an effort at goal from deep inside the box striking the post.
Ben Wright fouled by Keiran Murtagh, the ref awards a free kick. Strike on goal comes in from Ben Wright from the free kick. Ben Wright decides to take the corner short, Effort on goal by Matt Taylor from just outside the area goes harmlessly over the target.
The referee gets the game underway.
Live text and data provided by The Press Association
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.