Match ends, FC Halifax Town 2, Wrexham 1.
Devante Rodney scored in second half stoppage time at The Shay to end Wrexham's hopes of a top three National League finish.
Ex-Dragon Scott Quigley fired Halifax ahead before Chris Holroyd equalised from a corner prior to the interval.
Wrexham upped the pace after the break, but goalkeeper Sam Johnson kept out Akil Wright's header.
Kevin Roberts twice denied Rodney before he fired in his seventh goal in 11 games to send Wrexham down to fifth.
Bryan Hughes' men can now finish no higher than fourth in the National League.
Wrexham manager Bryan Hughes told BBC Sport Wales:
"I want to go unbeaten now until the last game of the season.
"From our point of view we want to go up. We gave ourselves a chance of top three, but this result decides our fate.
"Wherever we finish, that is what we will deserved and now we get our first go in the play-offs for six years.
"It is a positive not a negative and we want to galvanise the whole town and get everyone behind us."
- 31MaherBooked at 57mins
- 33GondohSubstituted forPrestonat 70'minutes
- 37QuigleySubstituted forDukuat 37'minutes
- 2RobertsBooked at 29mins
- 7SummerfieldSubstituted forRutherfordat 67'minutes
- 10HolroydSubstituted forMcGlashanat 80'minutes
- 12OswellSubstituted forBeavonat 67'minutes
- Andrew Miller
Second Half ends, FC Halifax Town 2, Wrexham 1.
Goal! FC Halifax Town 2, Wrexham 1. Devante Rodney (FC Halifax Town).
Substitution, Wrexham. Jermaine McGlashan replaces Chris Holroyd.
Substitution, FC Halifax Town. Jordan Preston replaces Ryan Gondoh.
Substitution, Wrexham. Stuart Beavon replaces Jason Oswell.
Substitution, Wrexham. Paul Rutherford replaces Luke Summerfield.
Niall Maher (FC Halifax Town) is shown the yellow card.
Second Half begins FC Halifax Town 1, Wrexham 1.
First Half ends, FC Halifax Town 1, Wrexham 1.
Goal! FC Halifax Town 1, Wrexham 1. Chris Holroyd (Wrexham).
Substitution, FC Halifax Town. Immanuelson Duku replaces Scott Quigley.
Kevin Roberts (Wrexham) is shown the yellow card.
Goal! FC Halifax Town 1, Wrexham 0. Scott Quigley (FC Halifax Town).
First Half begins.
Lineups are announced and players are warming up.