Substitute Patrick Schmidt scored a 93rd-minute winner as Barnsley kept alive their hopes of avoiding relegation from the Championship by beating Nottingham Forest.
The Tykes began needing to win both of their final two games to stand any chance of survival.
And, after an afternoon of frustration in front of goal, they were finally rewarded deep into stoppage time when Schmidt prodded home from close range following a scramble in the box.
Barnsley produced a positive, forward-thinking performance, and registered 20 attempts on goal.
But before Schmidt’s winner the closest they came was when they twice hit the woodwork, first through Luke Thomas’ rising first-half drive from the edge of the box which clipped the top of the bar, before Marcel Ritzmaier’s low drive midway through the second half struck the outside of the post.
Barnsley climb off the bottom of the table, a point above Hull City, and must now also win at at promotion-chasing Brentford on Wednesday to have any chance of staying up.
Defeat means Forest still need a point from their final game against Stoke to guarantee a play-off place for the first time since 2011.
Tykes struggle to make pressure tell
Barnsley, who performed impressively in losing narrowly at champions Leeds on Thursday, were much the better side in the first half but were unable to make their possession and chances count.
Thomas had the game’s first opening, seeing his drive turned behind by Forest keeper Jordan Smith.
Conor Chaplin fired across goal from a tight angle and then saw another effort pushed away by Smith, moments after Callum Styles fired wide.
The chances kept coming as Thomas struck the bar, Alex Mowatt side-footed narrowly wide from 20 yards and Jacob Brown was denied by Smith after being played through one-on-one.
But as time started to run out after the break the openings became less frequent for the Tykes, despite the half-time introduction of top scorer Cauley Woodrow.
Other than Ritzmaier’s shot against the post, their only other effort of note saw Jordan Williams fire over the angle of post and bar until Brown headed a cross back into the danger area and Schmidt poked the ball past Smith from six yards for his third goal of the season.
More to follow.