Jack Harrison's stoppage-time winner meant Leeds United ensured Premier League survival on Sunday with a 2-1 victory away at nine-man Brentford that saw Burnley go down instead.
A Raphinha penalty gave Leeds a second-half lead but they conceded a goal from Sergi Canos in the 78th minute before Harrison fired home four minutes into stoppage time to spark ecstatic celebrations.
- Premier League final day: As it happened
Burnley's 2-1 loss to Newcastle United at Turf Moor meant Leeds finished three points above them, with 38 points being enough to ensure their safety. They had trailed Burnley on goal difference going into the final day's fixtures.
Jesse Marsch told Sky Sports after the match: "There's so much been said about Marcelo Bielsa vs. me, and there's been people counting us out, I get it, this is high level stuff, and fans pay attention all over the world. It's not a perfect representation of what I want this team to be but in this situation we came together well and I still feel strongly about the group we have and the football we can play.
"We need to get better and add some pieces but I love this group, team, character, commitment and spirit.
"We were with our fans enough and I appreciate the fans singing my name but that's not the important thing. We are Leeds United and that's what we will always be as long as I am here -- I love our fans but I don't care if they sing my name. It's important we are a committed group and show us that every time on the pitch."
Leeds, who had collected two points from their previous five league games, rode their luck initially before taking advantage of their numerical superiority to set up a dramatic victory.
Early mistakes betrayed Leeds's anxiety but they were first to have a shot on goal as Sam Greenwood's driving run in the 17th minute ended with a poor shot over the top of the target.
Two minutes later his pass allowed Joel Gelhardt to finish from close range, sending the visiting fans into ecstatic celebration, only for the effort to be chalked off for offside after a VAR check.
The disappointment for the Leeds supporters was quickly alleviated by news from Turf Moor where Burnley went behind to Newcastle after 20 minutes.
Despite the boost, Leeds continued to make unnecessary errors as they allowed Brentford four chances in the final 10 minutes of the first half, with Bryan Mbeumo having the best effort but firing across the face of goal.
The striker had an even better opportunity two minutes into the second half but hit his shot straight at Illan Meslier in the Leeds goal.
Raphinha had a good chance in the 53rd minute but was foiled by Brentford's David Raya, then the goalkeeper gave away the penalty 60 seconds later by tripping the Brazilian, who tucked away the pressure kick with his left foot.
Brentford's Kristoffer Ajer went off injured with 15 minutes left, after they had already made three changes, but the 10-man hosts equalised at the end of a sweeping move from deep in defence with Yoane Wissa crossing for substitute Canos to head home.
Canos removed his shirt in celebration, earning a caution, and then picked up a second yellow card two minutes later for a trip of Raphinha.
With Brentford two players short, Leeds pushed forward for a winner but left it late before Harrison's last-gasp winner.