Guiseley beat Torquay to keep their National League status and condemn FC Halifax Town to relegation.
The Lions looked to be cruising when they went 3-0 up thanks to goals from Oli Johnson, Will Hatfield and Anthony Dudley inside the opening half hour.
They needed to win and hope results elsewhere went their way.
Nathan Blissett and Toby Ajala made it 3-2, before Dudley pounced to make it 4-2.
But there were some nervous last few minutes when Shaun Harrad pounced to cut the deficit on 77 minutes.
But with news coming in from Halifax that the Shaymen had drawn 1-1, the survival party could start.
For all the latest from today’s games, check out The Yorkshire Post’s live feed by clicking the link below....