Paul Caddis' 93rd-minute equaliser saved Birmingham City from relegation and sent Doncaster Rovers into League One on Saturday.
On a dramatic final day that also saw Brighton and Hove Albion claim the final play-off spot, stunning late drama at the Reebok Stadium kept Birmingham safe on goal difference as they claimed an unlikely 2-2 draw.
Lee Clark's side seemed destined to drop into the third tier of English football for the first time since 1994-95 when they trailed Bolton Wanderers 2-0 with 14 minutes left.
But Nikola Zigic's header rallied Birmingham before their late pressure ended with Caddis nodding in from close range to delight the club's travelling supporters.
Birmingham were excellent in the first half and had 11 shots on goal to the three of their opponents, but they could not find the all-important breakthrough.
City – who started the day in 22nd, one point adrift of safety - saw Lee Novak go close twice around the half-hour mark before the same player steered in from close range after a free-kick, only for the effort to be ruled out for a foul in the build-up.
Lee Chung-Yong's arrowed finish from eight yards in the 57th minute gave Bolton the lead and Lukas Jutkiewicz was quick to double their advantage.
Zigic gave Birmingham a lifeline in the 78th minute, though, when he nodded Mitchell Hancox's excellent cross in before sustained pressure eventually led to a dramatic leveller.
Caddis was to provide it, following in after Zigic's header was cleared off the line by Tim Ream to secure his side's survival in the most dramatic way.
Birmingham's draw meant Doncaster were relegated by virtue of an inferior goal difference after a 1-0 defeat at champions Leicester City.
David Nugent scored the game's only goal from the penalty spot with 15 minutes to play as Doncaster – promoted in equally dramatic scenes on the final day of League One last term – were sent down.
At the other end of the table, Leonardo Ulloa's 92nd-minute header gave Brighton a 2-1 win at Nottingham Forest, a result that saw them finish a point ahead of Reading.
Matt Derbyshire headed Forest in front in the 22nd minute, but Stephen Ward levelled proceedings eight minutes after the break.
And Ulloa was on hand to head in Craig Mackail-Smith's cross in stoppage time to extend his side's season.
Brighton lost to eventual play-off winners Crystal Palace in last year's semi-finals.
Reading finished seventh after a 2-2 home draw against already promoted Burnley.
Kieran Trippier's own goal was cancelled out by Scott Arfield and then Danny Ings as Sean Dyche's side took the lead.
A stunning Garath McCleary volley drew Reading level with 32 minutes to play but they were unable to find a late winner.
Derby County finished third and will meet Brighton in the play-offs, but saw their 10-match winning streak against Leeds United come to an end as Matt Smith cancelled out Simon Dawkins' early goal in a 1-1 draw at Elland Road.
QPR warmed up for the play-offs with a 3-2 win at already relegated Barnsley, while Wigan Athletic, who will face Harry Redknapp's side over two legs, lost 4-3 at eighth-placed Blackburn Rovers.
Yeovil Town's first season in the second tier of English football saw them finish bottom as they lost 4-1 to Middlesbrough at home, while Blackpool – who ended just two points above the relegation zone – slumped to a 3-0 defeat against Charlton Athletic.
Other results on Saturday saw Huddersfield Town win 4-1 at Watford, while Ipswich Town beat Sheffield Wednesday 2-1 and Millwall edged Bournemouth 1-0.
|Coach: D. Freedman|
for R. Hall 61'
for Chung-Yong Lee 81'
for J. Beckford 86'
|Conte: We still need 29 points for Premier League title|
|We need an Aubameyang who does not think too much - Tuchel|
|Guingamp 1 Monaco 2: Glik, Fabinho on target|
|Marco Silva blames lack of focus as Hull remain in drop zone|
|Lukaku becomes Everton´s joint leading Premier League scorer|
|RB Leipzig 3 Cologne 1: Hosts capitalise on errors to stay hot on Bayern´s heels|
|Real Betis 1 Sevilla 2: Sampaoli´s men heap pressure on Real Madrid|
|Hull City 1 Burnley 1: Keane on target as 10-man Clarets end dire away run|
|Chelsea 3 Swansea City 1: Fabianski´s error helps Premier League leaders move 11 points clear|
|Neuer reaches 100 Bundesliga clean sheets for Bayern in record-breaking fashion|
|Everton 2 Sunderland 0: Unhappy Goodison return for Moyes as Lukaku wraps it up|
|West Brom 2 Bournemouth 1: McAuley winner piles pressure on Howe|
|Crystal Palace 1 Middlesbrough 0: Van Aanholt proves difference in nervy basement battle|
|Luis Enrique dismisses claims of dressing room discontent at Barcelona|
|Bayern Munich 8 Hamburg 0: Lewandowski hits hat-trick in special day for Ancelotti|
|Freiburg 0 Borussia Dortmund 3: Aubameyang back in the goals with a brace|
|#Piegate bites back as Sutton are forced to use outfield player in goal|
|Schmeichel denies players met with Leicester board to get Ranieri sacked|
|Spalletti would not swap Dzeko for Icardi|
|Emery understands Marseille rivalry and hopes PSG can repeat Barca win|
|Ibrahimovic better than ever and could play on until he turns 40 - Mourinho|
|Simeone: Barcelona still the best team in the world|
|A-League Review: Victory stay in Sydney hunt, Roar slip up at home|
|Zidane hopes potential France return will boost Benzema|
|I have not talked to anyone at Leicester - Mancini on replacing Ranieri|
|LaLiga teams raise their game against Real Madrid, claims Zidane|
|Arrivederci, Claudio! Ranieri says his final Leicester goodbyes|
|Soldado expects Real Madrid to come out fighting after Valencia loss|
|Montella hoping to remain AC Milan coach despite impending takeover|
|Valencia hopes EFL Cup triumph can inspire late title charge|
|Pele´s son vows to clear his name after being jailed for money laundering|
|Wijnaldum highlights Kante loss as crucial to Leicester´s downfall|
|Lyon rejected chance to sign Sakho, says Aulas|
|Koeman hopes Southampton lose EFL Cup final to boost Everton´s European hopes|
|Mata insists Manchester United will not take EFL Cup final for granted|
|Simeone´s Atletico starting to decline, Abbiati claims|
|Chelsea´s Fabregas ´100 per cent´ staying at Stamford Bridge|
|´Being Joey´ - Dyche talks up Barton TV show|
|Messi the best of all time, says Jovetic|
|You can define an era - Buffon wishes Donnarumma happy birthday|
|Clement: Llorente wants to star against Chelsea|
|Koeman not interested in Everton renewal amid Barca links|
|Rivals scared of Ibrahimovic, says United team-mate Herrera|
|Schmeichel pays tribute to Ranieri|
|Yaya Toure wants to play with Neymar and Coutinho|
|Mourinho: It´s more difficult to win now|
|I didn´t sleep for six days – Conte motivated by last-gasp title loss|
|It all depends on success - Klopp knows trophies are a must|
|Barkley targets finishing above Liverpool|
|Championship Review: Birmingham ease pressure on Zola with derby win|
|Mourinho could start Rooney in EFL Cup final|
|Comeback kid Le Bihan moves Nice level with Monaco|
|Leicester job an amazing opportunity - Rowett pitches to replace Ranieri|
|Deschamps free to pick Benzema, Le Graet reveals|
|Valencia request new time for Barcelona fixture|
|Rabona-fide brilliance! Watch Kovacic´s marvellous strike in Real Madrid training|
|Hull´s Silva cools Hernandez CSL rumours|
|Frustrated Allardyce accepts Palace players are struggling|
|Sampaoli tells Sevilla to learn from Real Madrid errors in ´most important game of the year´|
|Raiola ready to cut off Balotelli´s tongue after latest red card|
|My dream died after Leicester sack - Ranieri|
|Schalke sign Bentaleb from Tottenham|
|Puel welcomes Mkhitaryan´s EFL Cup final absence|
|Arsenal chairman concedes Gunners are playing for pride against Bayern|
|Melbourne City 1 Sydney FC 3: Bobo double helps leaders back to winning ways|
|Kohler refuses to write off Gotze|
|Ranieri will be remembered in 2,000 years, says Mancini|
|You don´t owe anyone - Henry tells Rooney to make China move if it makes him happy|
|I was not an Italian spy! - No ulterior motive for Conte in Eddie Jones meeting|
|Inter coach Pioli expects tight Roma clash|
|Mourinho: Leicester should name stadium after Ranieri|
|Conte: Ancelotti the best Italian coach in the world|
|Carrick in, Mkhitaryan out for Manchester United in EFL Cup final|
|Klopp compares Ranieri sacking to Trump, Brexit triumphs|
|Ranieri did not lose Leicester dressing room, insists Shakespeare|
|Conte willing to risk sack to lead Chelsea to Premier League glory|
|Disapponting for managers around the world - Premier League bosses react to Ranieri sacking|
|Ribery ready for Bayern Munich comeback|
|Celtic fined for Manchester City crowd trouble|
|Vardy´s goal decline and Mahrez´s assist struggles: The Opta stats behind Ranieri´s Leicester demise|
|Bayern boss Ancelotti vows never to repeat middle finger gesture|
|Medel urges Sanchez to quit Arsenal for Inter|
|Europa League draw: Manchester United to play Rostov, Lyon v Roma|
|Aubameyang dry spell worries me - Tuchel|
|Varane a doubt for Napoli as Real Madrid confirm muscle injury|
|Leicester job favourite Mancini: I am sorry for my friend Ranieri|
|Allegri welcomes back Bonucci following apology|
|Montella targets lengthy AC Milan stay|
|Lineker cries after Ranieri is sacked|
|Ranieri sacking ´the biggest shock in a decade´|
|Wenger ´witch-hunt´ has gone too far, says Bilic|
|Lewandowski better than Benzema, Suarez, Costa - Matthaus|
|Sticks and Stones may break my bones - Man City defender unhurt by criticism|
|Atletico Madrid v Barcelona: Simeone´s men primed to land on punch-drunk Barca|
|Pogba no machine like Messi or Ronaldo, says Mata|
|Oxlade-Chamberlain adamant Arsenal ´more than capable of competing for title´|
|Monaco star Falcao was almost lost to baseball|
|FC Dallas 4 Arabe Unido 0: Champions League semis beckon for Americans|
|No gratitude in football - Spalletti saddened by Ranieri sacking|
|Alli not to blame for Tottenham´s Europa League exit - Pochettino|
|Mourinho pays tribute to axed Leicester boss Ranieri|
|Europa League Review: Spurs crash out, Stindl stuns Fiorentina, Lyon destroy AZ in record-equalling|
|Bastia punished over Balotelli abuse|
|Eriksen blames Tottenham´s shock Europa League exit on poor finishing|
|Ranieri sacking a brutal reminder of football´s necessary lack of sentiment|
|Tottenham 2 Gent 2 (2-3 agg): Alli sent off as Kane own goal sends Spurs out|
|Jokanovic signs new Fulham deal|
|Serie A top three setting ´incredible´ pace, says Eder|
|Ranieri sacked by Leicester City|
|Coutinho: Klopp lets us do whatever we want|
|Lampard to be honoured with Chelsea tribute|
|Bolasie set for second knee surgery|
|Rooney rejects Chinese fortune to stay at United|
|Falcao has silenced his critics - Jardim|
|Clement backs Mawson to shackle Chelsea stars ahead of ´special´ Stamford Bridge return|
|Happiness more important than money - Bacca rejects new China approach|
|Lewandowski the perfect number nine, says Jancker|
|Digne tips PSG for fifth consecutive Ligue 1 title|
|Cedric thinks Euro 2016 final will help against Manchester United|
|Infantino praises progress on Qatar 2022 worker conditions|
|Manchester United have strength in depth to win quadruple, says Young|
|Ibrahimovic on PSG´s Barca victory: Win or lose, they talk about me|
|Robbery, Thiago irreplaceable at Bayern - Matthaus|
|Griezmann will ´definitely´ join Manchester United, claims Petit|
|Manchester United selling Rooney now would be odd - Neville|
|Rooney named China´s fifth most popular player, Ronaldo on top|
|Payet always loved Marseille - Digne|
|Arsenal midfielder Cazorla set to miss rest of season|
|Alba wants Isco at Barcelona|
|Bilic worried injuries will derail Carroll´s England hopes|
|Aguero ability was never in doubt for Fernandinho|
|Nani thigh injury tempers Valencia´s Real Madrid joy|
|Matip confident Liverpool will make top four|
|Rooney still has the quality to play in Europe, says Bilic|
|Koscielny wants Wenger to stay at Arsenal|
|Pogba record will soon be broken - Kahn|
|Ramos hurting but calm after Real Madrid´s Valencia setback|
|De Boer would love to manage in the Premier League|
|Wenger criticism is impossible - Nasri defends embattled Arsenal boss|
|It´s good to talk - Sagna urges better communication from Manchester City defence|
|CONCACAF Champions League Review: Vargas scores as Tigres UANL are held|
|Jovetic: We were much better than Leicester|
|Victory star Berisha set to debut for Kosovo|
|Pjaca keen for more chances after first Juve goal|
|Allegri hails ´champion´ Alves|
|´Going to China? Madness´ – Keane urges Rooney to stay in Europe|
|Nuno rues Telles red as Porto retain hope|
|Socceroos to host Brazil in Melbourne|
|Sampaoli rues Schmeichel heroics|
|Sevilla president unimpressed by ´unjust´ winning margin|
|Allegri praises Pjaca for attitude change|