Paul Mullin's two second-half goals sealed the victory Wrexham needed to secure the Vanarama National League 2022/23 title.
Knowing a win would confirm the title and promotion, in front of the highest attendance at the Racecourse Ground this season, the match could not have started worse for Wrexham - Lee Ndlovu putting Boreham Wood in front within a minute.
But Elliot Lee headed in an equaliser, before two excellent second-half finishes from Paul Mullin sealed victory and sparked scenes of jubilation.
Club captain Ben Tozer and first-team captain Luke Young lifted the Vanarama National League trophy as Wrexham secured a return to the EFL exactly 15 years to the day since relegation was confirmed.
Despite players returning from injury, Phil Parkinson resisted the urge to ring the changes - though Jacob Mendy did come back in at left wing-back against his former team.
With the Wrexham supporters in full voice, however, Boreham Wood threatened to spoil the party when Lee Ndlovu pounced on Tozer's slip to run onto a loose ball and lob Foster within the first minute.
Wrexham responded well, however, and were rewarded when Ryan Barnett's floated cross was headed in by Lee at the back post on the quarter-hour.
The hosts created the better chances, but it took a moment of magic after the break from Mullin to give Wrexham the lead.
The Red Dragons' top scorer got the ball on the left-hand-side, skipped into the penalty area to create an angle for a shot and fired the ball into the far top corner.
And it was Mullin who sealed victory too, shifting the ball onto his left foot and firing in across goal.
The referee's full-time whistle sparked wild scenes of celebration, before Tozer and Young joined their team-mates to lift the league title.
Wrexham will complete the season, and their 15-year stay in the National League with a trip to Torquay United next weekend - safe in the knowledge that we are an EFL club once again!
Full report/stats to follow.