Burnley were relegated from the Premier League after Leeds United dramatically defeated Brentford to leapfrog the Clarets, who fell to a 2-1 loss to Newcastle United on the final day.
Leeds headed into Sunday needing to better Burnley's result due to an inferior goal difference and they were celebrating as news filtered through of Callum Wilson's first-half penalty for Newcastle.
Raphinha converted from the penalty spot at Brentford in the second half to further aid Leeds' cause, with Wilson doubling Newcastle's lead on the hour at Turf Moor after a pass from Allan Saint-Maximin.
However, Maxwel Cornet reduced the deficit for Burnley when he finished past Martin Dubravka and matters worsened significantly for Leeds when substitute Sergi Canos headed to level for Brentford.
But Canos was cautioned for celebrating by taking his shirt off and then dismissed soon after for a foul on Raphinha, with Brentford reduced to nine men after making all their substitutes when they lost Kristoffer Ajer to injury.
And Jack Harrison confirmed Leeds' Premier League status for next season as he smashed in after 94 minutes. It was the Whites' fourth stoppage-time winner in the Premier League, no team this season has scored more.
It meant Leeds became the first side since Wigan in the 2010-11 Premier League season to head into the final day in the bottom three and survive, as Burnley join Norwich City and Watford in the Championship next term.
WE ARE STAYING UP!!! pic.twitter.com/ApxMFL9s0H— Leeds United (@LUFC) May 22, 2022