Wrexham finished their 87-year Football League stint in style with a spirited 4-2 victory at Lincoln.
The Dragons, who face next season in the Blue Square Premier, edged in front after 11 minutes when a free kick from Wes Baynes was headed in by Levi Mackin.
Wrexham kept up the pressure and after Lincoln's Gary Croft handled on the edge of the box, Baynes blasted home a free kick in the 33rd minute.
Lincoln did not manage a single shot in the first half but pulled a goal back six minutes before the break thanks to a classic own goal.
There appeared no danger when Lincoln's Lee Beevers thumped a 40-yard clearance deep into the Wrexham half, but keeper Gavin Ward and centre-back Steve Evans managed to make a complete hash of clearing, with Evans heading the ball into his own net.
Lincoln improved in the second half and were unlucky when a 60th minute shot from Ben Wright was cleared off the line.
But in a dramatic finale Baynes smashed home an 87th minute free kick, sparking a pitch invasion from the visiting fans.
In stoppage time Wright fired in his 15th goal of the season for Lincoln and the Imps almost levelled, with Beevers hitting the post and Jamie Forrester missing a sitter.
But Chris Llewellyn broke away in the third minute of time added on to score Wrexham's fourth.