Accrington striker Billy Kee bundled home a stoppage-time winner to end pre-season promotion favourites Mansfield's unbeaten start to the League Two season.
Sean McConville's corner was not cleared and in a goalmouth melee, Kee scrambled home his third goal of the campaign two minutes into added time to seal a 2-1 victory for the hosts.
The match-winning goal came on the same day that it was revealed that Kee had been charged following an alleged incident outside a Leicester nightclub in January.
Stanley opened the scoring after 10 minutes when Kayden Jackson got the ball in the box from Janoi Donacien, turned and slotted it low into the far corner of the net. It was former Barnsley frontman Jackson's fourth goal in three league games.
Mansfield equalised after 25 minutes when Danny Rose flicked the ball over keeper Aaron Chapman and it fell to Lee Angol who had the easy task of firing into an empty net for his first Stags goal.
It was a fiery first half with Paul Digby and Zander Diamond both off-target for Mansfield while Omar Beckles headed wide for Stanley.
After the break, both sides had chances to win it with Mansfield's Krystian Pearce heading wide from a corner while, at the other end, Mark Hughes headed over and Jackson had a goalbound shot blocked before Kee popped up with the winner.