Leeds edged out Barnsley to move just one point away from confirming their long-awaited return to the Premier League.
Brentford’s win over Preston on Wednesday meant that Leeds could not gain promotion in their next match, but it now appears only a matter of time before Marcelo Bielsa’s side are back in the big time.
Leeds now need just one point from their last two games to secure automatic promotion. They will go up as champions with one more win.
The win over Barnsley wasn’t plain sailing, coming courtesy of an own goal from Michael Sollbauer in the first half.
Their visitors, bottom of the table, actually had around twice as many shots as Leeds. However, Barnsley couldn’t get a goal, so the Whites clinched the win to bring their dreams of promotion ever closer to reality.
It was a disjointed, anxious, display from Marcelo Bielsa’s side, who were given plenty of scares by the Sky Bet Championship’s bottom club, who played with bucketfuls of heart in their bid to beat the drop.
Leeds, who play at Derby on Sunday, will be assured a top-flight return for the first time in 16 years if second-placed West Brom fail to win at relegation battlers Huddersfield on Friday.
Barnsley, who remain four points from safety with two games left, play at home against Nottingham Forest on Sunday.
Leeds went in at the break 1-0 up, but the first half had been cruel on Barnsley, who had made life very difficult for their local rivals.
Barnsley forward Jacob Brown should have given his side an 11th-minute lead after being played in by Cauley Woodrow’s excellent pass.
But Brown did not trust his left foot and dragged his effort wide from a tight angle with just goalkeeper Illan Meslier to beat having lost his marker in the box.
The visitors had been forced into some frantic, last-ditch defending before Leeds were given another let-off in the 27th minute when Mads Andersen’s flying header from Callum Styles’ corner flew inches wide.
But Leeds broke the deadlock moments later when Barnsley defender Sollbauer diverted the ball into his own net while under pressure from Helder Costa following Patrick Bamford’s cutback.
Jordan Williams rescued Barnsley on the stroke of half-time following the best move of the half, which ended in Jack Harrison’s low cross.
Pablo Hernandez replaced Tyler Roberts during the break and soon after Costa made way for Ezgjan Alioski.
Costa had gone down under a challenge from former Leeds midfielder Alex Mowatt and was later carried off the field on a stretcher.
Leeds were given two more scares in as many minutes when angled drives from Conor Chaplin and Styles narrowly missed the target.
Bielsa sent on Dutch defender Pascal Struijk for his third Leeds appearance in place of Harrison with half an hour left before Sollbauer’s header forced Meslier into another save.
Barnsley goalkeeper Jack Walton saved brilliantly from Bamford after the Leeds striker had charged on to Alioski’s fine pass and at the other end Woodrow’s shot on the turn was acrobatically tipped over by Meslier.
The tension in the stands among the Leeds hierarchy reached unbearable levels during the closing stages as the home side failed to retain possession, but they held on.