Harrogate managed to secure their position in League Two thanks to a 3-1 comeback victory against Fleetwood at their own ground.
Initially losing while dominating the game, the Sulphurites fought back to move nine points clear of the relegation zone with only two matches remaining.
In the first half, Harrogate posed more danger, with Josh March having a goal disallowed for a foul, and Stephen Dooley's shot being stopped by Jay Lynch.
Ellis Taylor then came close with a long-range free-kick, and March had a shot cleared off the goal line by Fin Potter.
Despite not being very threatening in attack for 51 minutes, Fleetwood took the lead with their first real opportunity when Kobei Moore scored from Mackenzie Hunt's corner kick.
However, Harrogate quickly responded, with Jasper Moon scoring easily after Lynch struggled to save Taylor's free-kick.
The hosts then completed the turnaround just after the hour mark as Taylor placed the ball under Lynch after being set up by March.
Substitute Tom Cursons added a fourth goal in the sixth minute of added time, tapping in Taylor's cross to seal the victory.