Super sub Matt Rhead's injury time header ensured Mansfield remained in the third round of the FA Cup as his late header snatched a 3-3 draw at derby rivals Lincoln City.
The Stags had taken the lead in the 21st minute when Matt Green rounded Paul Farman to give them a deserved lead.
But Alan Power hauled Lincoln level on the stroke of half-time with a glorious 20-yard free-kick after Adam Murray had fouled Jamie Taylor.
David Holdsworth's side then took the lead just after half-time when top scorer Taylor rattled in at the second attempt.
But Louis Briscoe pulled the Stags level just moments later with a blistering 20-yard drive which gave Farman no chance.
In what was a terrific cup clash, Power put Lincoln back in front when he rounded off a searing counter attack.
Just as Lincoln sensed victory though, Rhead powered a header beyond Farman.
However, the Stags were indebted to Briscoe who cleared a Vadaine Oliver header off the line with the last kick of the game.