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'
|Italy v Scotland: Chiellini spots chance to prepare for Ireland challenge|
|Sane brushes off talk of Schalke exit|
|Yorke: Giggs should be Mourinho successor|
|Defence can lead Italy to Euro success - Chiellini|
|Scolari swoons over ´spectacular´ Ronaldo|
|Neuer to miss Germany friendly|
|Gabi looking forward, not back|
|Gerhardt agrees Wolfsburg switch|
|Champions League final is the game of my life - Torres|
|Mourinho urges United to ´forget the past three years´|
|Simeone: Casemiro the key for Real|
|Malaga appoint Ramos|
|Berlusconi ready to relinquish power at AC Milan|
|Busquets agrees new five-year Barcelona contract|
|Euro 2016 not under threat from strike action - Braillard|
|Real Madrid v Atletico Madrid: San Siro the stage for Champions League final re-run|
|Vela staying with Sociedad - agent|
|A poke in the eye & ´the f****** master´: Five of the best Mourinho v Guardiola battles|
|Red Devils enter Faustian pact as Manchester United hire Mourinho|
|Star striker top of Mourinho´s United shopping list|
|An attacking mastermind even more fearsome than Ferguson - Jose Mourinho in numbers|
|Manchester United appoint Mourinho as manager|
|Italy not among Euro 2016 favourites - Ancelotti|
|Win or lose in Milan, it is time for Perez to back Zidane|
|Ronaldo wants Morata back at Madrid|
|England v Australia preview: All eyes on Rashford debut|
|Weigl, Kimmich grateful to Tuchel and Guardiola|
|Benitez: I´m ready for Championship challenge|
|Colombia v Haiti: Bacca ready for responsibility|
|Karembeu hails Zidane ahead of Champions League final|
|Panama v Brazil: Lucas Lima ready to prove himself|
|Kaka replaces Douglas Costa in Brazil´s Copa America squad|
|Mascherano opens up on Juventus rumours|
|Allen unclear over Liverpool future|
|Hodgson praises scrapped cup replays|
|Deschamps to take legal action against Cantona|
|Kuyt signs new Feyenoord deal|
|Messi set for court appearance on June 2|
|Juninho tips Atletico for Champions League glory|
|Galatasaray 1 Fenerbahce 0: Podolski header settles Turkish Cup final|
|Skrtel set for Liverpool exit|
|Rashford set for England debut|
|Xavi: It is Atletico Madrid´s time to win the Champions League|
|Manchester United will be hard to beat with Mourinho - Courtois|
|Signing ´animal´ Ibrahimovic a no-brainer for Man Utd, says Henry|
|FA Cup quarter-final replays scrapped|
|Cantona suggests Deschamps dropped Ben Arfa and Benzema over race|
|Depay ´p***** off´ at lack of football|
|Ferdinand welcomes Mourinho to Manchester United|
|Delph placed on England standby list|
|Wales talisman Bale shrugs off Euro pressure|
|Ronaldo open to working under Mourinho again|
|Ronaldo values Champions League over Barcelona´s double|
|Switzerland v Belgium: Shaqiri eyes Euro glory|
|Willian: Manchester United stronger with Mourinho|
|Liverpool and Dortmund in for Guerreiro|
|Real Madrid will attack Atletico again, says Ancelotti|
|Ramirez set for Southampton exit|
|Bale calls for cool Madrid heads|
|´Mourinho can take United back to the top´ - Ibrahimovic hints at Old Trafford switch|
|Hull City v Sheffield Wednesday: Promotion windfall the prize on offer|
|Lahm eyes Champions League glory with Ancelotti|
|Juventus chief hints at Dani Alves deal|
|Gotze warned he will not be first choice under Ancelotti|
|Courtois: If nothing strange happens, I will continue at Chelsea|
|Vermaelen ´disappointed´ by Barca struggles|
|Higuain and Lamela dream of lifting the Copa America|
|Reborn Torres returns to Milan to complete Atletico´s greatest tale|
|Lukaku offers Everton ultimatum: I want to win trophies!|
|United States v Bolivia: Copa America hosts to fine-tune preparations|
|Zidane has united Real Madrid again - Ramos|
|Mexico v Paraguay: Marquez ready to make the most of ´great opportunity´|
|Republic of Ireland v Netherlands Preview: O'Neill wants confident display|
|Coyle leaves Houston Dynamo|
|McLaren could end Mercedes dominance - Alonso|
|Orlando City 2 Philadelphia Union 2: Tribbett rescues point in controversial contest|
|United States 1 Ecuador 0: Last-gasp Nagbe goal lifts hosts in Copa America warm-up|
|Djourou compares Xhaka to Pirlo|
|Gallas ´very proud´ of former boss Ranieri´s title glory|
|Copa America to use goal-line technology|
|Smith likens Postecoglou to Klopp|
|Hart backs Sterling to shine at Euro 2016|
|Giovinco happy in MLS despite Euro 2016 snub|
|Balotelli set for Liverpool return, confirms Berlusconi|
|Atletico must win Champions League - Cerezo|
|Arbeloa: Mourinho didn´t get enough recognition at Madrid|
|Mijatovic: Bale can save Madrid´s season in Champions League final|
|Gallas expects Conte to revive Chelsea|
|Deschamps ´annoyed, but not worried´ by Varane´s absence|
|´Impossible´ to see MSN leaving Barcelona - Bartomeu|
|Thiago pledges future to Bayern|
|Uruguay v Trinidad and Tobago: Sanchez skips final to help Suarez-less La Celeste|
|AFC Champions League Review: Urawa pay the penalty as Seoul advance|
|Uruguay v Trinidad and Tobago: Sanchez skips final to help Suarez-less La Celeste|
|Benitez ´convinced´ he can win trophies at Newcastle|
|Nigeria v Mali: Moses among many absentees for hosts|
|Chile - Jamaica Preview: Copa plans crystallize in Vina del Mar|
|Nigeria v Mali: Moses among many absentees for Super Eagles|
|Benitez to stay at Newcastle|
|Kramaric leaves Leicester for Hoffenheim permanently|
|Neustadter gets green light for Russia Euro 2016 selection|
|Chile v Jamaica: Copa plans crystallize in Vina del Mar|
|Ledley making progress in bid to prove Euro 2016 fitness|
|Gotze returns to Germany training|
|Ronaldo: Madrid would be smart to give me a new deal|
|Northern Ireland v Belarus: Last chance to impress as O'Neill prepares to trim squad|
|Varane disappointed by Euros absence|
|Republic of Ireland v Netherlands: O´Neill wants confident display|
|Ronaldo shakes off injury in Real Madrid training|
|Atletico star Griezmann ´listening to different clubs´|
|United States - Ecuador Preview: Klinsmann pins hopes on Yedlin as Copa preparations continue|
|Gold tells Middlesbrough to ´dream on´ over Antonio|
|Schweinsteiger wants Mourinho to spice up Manchester derby|
|England v Australia: All eyes on Rashford debut|
|Aggressive Premier League better for me - Xhaka|
|Schweinsteiger ´right on schedule´ for Euro 2016|
|Darmian relishing Euros after return from injury|
|Northern Ireland v Belarus: Last chance to impress as O´Neill prepares to trim squad|
|Ventura leaves Torino amid Italy talk, Mihajlovic appointed|
|Sevilla confident of keeping Emery|
|Godin wants Atletico to use 2014 defeat as inspiration|
|Xhaka agrees Arsenal move|
|Idolisation of Ibrahimovic warranted Sweden captaincy - Hamren|
|Scholes hopes Mourinho keeps Giggs at Manchester United|
|Gotze snubbing Liverpool will boost Germany - Bierhoff|
|Bosz honoured by Ajax appointment|
|Ramos highlights Griezmann threat|
|Record-chasing Ronaldo and taming the Wolves - Real Madrid´s route to the Champions League final|
|Donnarumma dreams of being Milan captain|
|Koke: History, not revenge motivating Atletico|
|Costa Rica v Venezuela: Hosts ramp up preparations for maiden Copa America tilt|
|Argentina v Honduras: Messi and co warm up for Copa America|
|USA will win a World Cup, says Donovan|
|Pumas UNAM 2 Independiente del Valle 1 (3-3 agg, 3-5 on penalties): Hosts suffer shoot-out heartbrea|
|Gracia leaves Malaga as Rubin Kazan loom|
|Messi: Argentina deserve to be Copa America champions|
|Dybala included in Argentina´s preliminary Olympics squad|
|Mourinho and United a ´good wedding´ - Ancelotti|
|Klinsmann: Copa America better than Euros|
|Messi: Joining Barcelona not an easy decision|
|Carrico receives four-game ban for homophobic slur|
|Dani Alves wants Atletico to win Champions League|
|McNair out to impress ´world-class´ Mourinho|
|Ranieri: Premier League survival is Leicester´s priority next season|