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'
|Barton: They built me up into a Neymar-Messi type|
|Shakhtar aware of Barca interest in Srna - Fonseca|
|Mets hitting coach believes Tebow can make it to MLB|
|Aubameyang reiterates Madrid dream after Bernabeu show|
|Zidane praises Benzema after 50th Champions League goal|
|Aubameyang deserves 99 per cent of credit - Reus|
|Neymar: There´s only one Ballon d´Or winner and it´s Messi, not Ronaldo|
|Magiera hails Legia victory as for ´all of Poland´|
|Tuchel thought Aubameyang had blown chance to equalise|
|Pochettino confident Spurs are back on track|
|Santo hails Porto´s mature performance|
|Lyon proved we can compete with Europe´s best - Genesio|
|Slutsky unsurprised by apparent Premier League interest in Dzagoev|
|Jardim frustrated as Monaco finally lose|
|Allegri dismisses importance of first-place finish|
|Zidane ´angry´ as Real Madrid let top spot slip|
|Sevilla aren´t satisfied with Champions League last 16 - Sampaoli|
|Ranieri slams Leicester´s lack of character|
|Confident Roberts ready to wing in for City|
|Real Madrid equal record 34-match unbeaten run|
|Kane relieved to end Wembley hoodoo|
|Legia Warsaw 1 Sporting CP 0: Guilherme seals Europa League spot|
|Porto 5 Leicester City 0: Silva at the double as Ranieri´s men crumble|
|Borussia Dortmund break record for goals in Champions League group stage|
|Real Madrid 2 Borussia Dortmund 2: Reus equaliser sees visitors grab top spot|
|Bayer Leverkusen 3 Monaco 0: Hosts retain unbeaten record with routine win|
|Club Brugge 0 FC Copenhagen 2: Routine win not enough as FCK must settle for Europa League|
|Lyon 0 Sevilla 0: Europa League holders secure passage|
|Juventus 2 Dinamo Zagreb 0: Bianconeri top group with easy win|
|Tottenham 3 CSKA Moscow 1: Spurs survive scare to seal Europa League berth|
|Benzema reaches 50 Champions League goals|
|Buffon´s 50-game Champions League run comes to an end|
|Santi Cazorla gives Achiles surgery two thumbs up|
|Video technology to assist referees at FIFA Club World Cup|
|Spalletti wants winning mentality to continue for Roma|
|M´Vila rejects Sunderland return|
|Robson-Kanu prioritised Premier League move, despite Atleti interest|
|Puel dismisses Fonte departure speculation|
|Mourinho rejects ´best coach in the world´ tag|
|Manchester United not giving up on Premier League, insists Mkhitaryan|
|Infantino favours 16 three-team groups at World Cup - report|
|Europa League an ´important competition´ for Mourinho|
|Brozovic extends Inter stay|
|Rooney still has England future - Hodgson|
|New wardrobe top of Jesus´ Manchester to-do list|
|Pioli not concerned by Simeone´s Inter comments|
|Poyet: It would be a pleasure to sign Tevez|
|Celtic charged by UEFA over crowd disturbances|
|Not extending Man United stay my only regret - Larsson|
|Aubameyang´s mum: He always spoke about Madrid, never Barcelona|
|AC Milan sale delayed until March|
|Police horse burger thrower fined|
|Nolito comfortable with Guardiola´s rotation policy|
|Ajax expect in-demand Bazoer to exit|
|Not even the Golden Boot would get me an England recall, says Defoe|
|MLS MVP Villa has no interest in Premier League move|
|Vidal: I never had a problem with Luis Enrique|
|Ancelotti not keen on Madrid Champions League reunion|
|Zabaleta: Guardiola needs Iheanacho more than ever|
|Ranieri not fearful of Foxes chop|
|Celtic fan arrested for throwing burger at police horse|
|Dad-to-be Lewandowski reveals baby news with goal celebration|
|Klopp´s Liverpool watched Barca at Camp Nou|
|Wenger braced for tough last-16 draw|
|Roberts buoyed by Guardiola acclaim|
|Gladbach´s Alvaro Dominguez retires at 27|
|Simeone satisfied with aggressive Atletico|
|Emery aims to bounce back after European disappointment|
|Madrid demand ´maximum respect´ for Ronaldo|
|No pressure on Iheanacho to fill Aguero´s boots - Guardiola|
|Cocu praises PSV effort despite European exit|
|Ancelotti hoping for confidence boost|
|Gunes takes blame for Besiktas thrashing|
|Vitoria upbeat despite Napoli defeat|
|Arda Barca future brighter after hat-trick|
|Le Tissier makes ´naked massage´ claims|
|´He has a smell for the goal´ - Wenger hails hat-trick hero Lucas|
|Guardiola to assess Roberts situation at end of season|
|Napoli have no fear - Reina|
|Iheanacho shines but Guardiola concerns lie deeper|
|Barcelona pass masters set new Champions League benchmark|
|Dybala ready to return for Juventus|
|PSV 0 Rostov 0: Russians seal Europa League spot with stalemate|
|Paris Saint-Germain 2 Ludogorets 2: Di Maria rescues draw but PSG miss out on top spot|
|Benfica 1 Napoli 2: Super-sub Mertens seals top spot|
|Dynamo Kiev 6 Besiktas 0: Nine-man visitors crash out|
|Messi fails to match Ronaldo´s Champions League record|
|Basel 1 Arsenal 4: Lucas hat-trick helps Gunners clinch top spot|
|Manchester City 1 Celtic 1: Roberts scores against parent club|
|Bayern Munich 1 Atletico Madrid 0: Lewandowski free-kick the difference in Bavaria|
|Barcelona 4 Borussia Monchengladbach 0: Arda hat-trick lights up Barca procession|
|Zidane ´more sympathetic´ than other Madrid coaches, says Ramos|
|Bartra eager to square up against old rivals Madrid|
|Pardew´s job is ´totally safe´ - Palace chairman|
|Shelvey and Dummett red card appeals successful|
|Lopes doubtful for Sevilla clash due to lack of sleep|
|Real Madrid test will bring the best out of Aubameyang - Tuchel|
|Slutsky to leave CSKA Moscow|
|Genesio hails Valbuena character|
|Spurs hungry for Europa League football - Vertonghen|
|Deschamps claims Pogba is unlikely to ever win Ballon d´Or|
|Xavi: Barca have not lost their essence|
|Strootman banned for sparking Rome derby brawl|
|Mkhitaryan accepts blame for slow start at United|
|New York City star Villa named MLS MVP|
|Ramos distances himself from tax avoidance scandal|
|Witsel casts doubt on January Juventus switch|
|Schmidt has faith in misfiring Hernandez|
|Gabriel not happy at Inter, says agent|
|PSG just another game for returning Balotelli|
|Dortmund eye top spot and a goalscoring record - Champions League in Opta numbers|
|Southgate bids farewell to England assistant Lee|
|Europa League can help Spurs end Wembley hoodoo - Pochettino|
|Watmore´s season ended by injury|
|Zidane: Dortmund clash is a final|
|Gotze to miss Madrid test|
|Lacazette to ponder Lyon future|
|Griezmann lauds ´world class´ Aubameyang|
|Sporting´s in-demand Gelson going nowhere, claims agent|
|FA appoints new lead QC as scope of child sexual abuse review is outlined|
|Hodgson: England players failed to grasp my instructions|
|Xhaka pleads for time to settle in at Arsenal|
|Kluivert urges PSG to learn from Montpellier humbling|
|Augenthaler tips Bayern captain Lahm to play on|
|Rodgers: Celtic growing in confidence in Europe|
|Brazil-Colombia friendly proposed to raise money for Chapecoense|
|If you don´t play, you can´t shine - Hummels urges Mourinho to believe in Mkhitaryan|
|Ronaldinho ready to help Chapecoense|
|United can still finish top four - Guardiola|
|Bale´s ankle ´feeling better every day´|
|Sarri: Napoli in Lisbon to win|
|Watford and West Brom hit with FA charge|