Chester FC will be in the National League next season after a magnificent 2-1 win at promotion hopefuls Grimsby Town.
Goals from John Rooney and Ryan Astles secured the three points needed to ensure results elsewhere did not matter and avoid going into the final game of the season with the threat of relegation hanging over them.
There was no question the win was deserved with every player showing the desire and passion that supporters have questioned during the course of a difficult season.
For caretaker manager Jon McCarthy and his assistant Ian Sharps, this result and more so the performance will strengthen their case to take the club into the 2016-17 campaign.
Grimsby almost took the lead inside five minutes with Tony Thompson making an fine stop down to his right to keep out Andy Monkhouse's header after the experienced winger ghosted in behind Ryan Higgins.
Chester responded and went even closer in the 12th minute when James McKeown parried Jordan Chapell's shot and Kane Richards followed up but Shaun Pearson blocked his strike on the goal-line.
The next 10 minutes belonged to the hosts with top scorer Padraig Amond wasting two good chances and Omar Bogle heading over a cross from the dangerous Monkhouse.
Chester came through that as the home side began to grow in frustration and although the visitors threatened on occasion too with McKeown forced into action when Richards flicked Higgins' cross goalwards.
Thompson made a decent stop when he pushed Bogle's 20 yard effort clear before McKeown rushed out to block when Chapell released Alabi behind the defence.
The final chance of the opening 45 minutes went to the Mariners but the excellent Ben Heneghan flung himself in front of Danny East's shot to ensure the half ended goalless.
It took three minutes for the deadlock to be broken and it was the Blues who drew first blood as Chapell took advantage of Evan Horwood's slip to burst into the box and he picked out John Rooney, who took a touch and then swerved his shot around McKeown to make it 1-0.
The goal fired Grimsby into life but the Blues defence held strong under pressure and the visitors were in dreamland when the advantage was doubled on 61 minutes.
Rooney was again as involved as he curled a free-kick to the far post where Ryan Astles managed to nod past McKeown from the tightest of angles for a 2-0 lead.
Grimsby were now in desperation mode and the home fans' frustration grew further when Tom Shaw blocked Bogle's shot with the goal gaping, although McKeown made an acrobatic stop to prevent Alabi adding a third goal from 25 yards.
The Mariners threw everything at Chester in an attempt to salvage the situation but the defence with Ben Heneghan and Astles at the heart held firm.
That was until the 83rd minute when Craig Disley lashed the ball into the net from eight yards after a goalmouth scrable to bring it back to 2-1 and ensure a nerve-wracking finish.
Grimsby could have rescued a point in the final throws when Amond found himself in a golden position but he sent his shot high over the bar.
Ben bound for bigger things: It's difficult to envisage Ben Heneghan remaining with Chester for next season. Of course it would be fantastic from a Blues-perspective if the defender was still at the club but he deserves a chance at a higher level. His performance at Blundell Park, where he marhsalled the back four against the division's most potent strike partnership, must have sent any watching Football League scouts home hugely impressed.
Rooney rules: Love him or hate him, and there's a pretty equal split among Chester fans, it's impossible to overlook John Rooney's contribution over the past few weeks. Five goals in five games speaks for itself but his all round contribution has been a real factor in the Blues getting themselves out of trouble. There are a lot of uncertanties about the squad for next season but Rooney shouldn't be one of them.
Chester FC: Thompson, Higgins, Heneghan, Astles, Hunt, Chapell (George 89), Shaw, Lloyd, Rooney, Richards (Hannah 68), Alabi (Hobson 79). Subs: Worsnop, Mahon.
Goals: Rooney 48, Astles 61.
Grimsby Town: McKeown, Tait, Pearson, Nsiala (Robertson 76), Horwood, East, Nolan, Disley, Monkhouse (Jennings 71), Amond, Bogle (Pittman 71). Subs: Henderson, Clay.
Goal: Disley 83.
Referee: Simon Bennett (Stoke).
Star man: Ryan Astles