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'
|Januzaj glad to get game time|
|Pellegrini positive City can close the gap|
|Martinez hopes win can be a springboard|
|Equatorial Guinea win miraculous - Becker|
|Vertonghen excited by Tottenham´s form|
|Garcia lauds Roma´s resilience|
|Sinclair wants to let his football do the talking|
|Luis Enrique aiming to halt Villarreal progress|
|Costa: ´I’m no angel´|
|La Liga Review: Real, Atletico cruise to wins|
|Primeira Liga Review: Leaders Benfica bounce back with win, Vitoria held|
|Serie A Review: Roma drop more points, Genoa and Fiorentina draw|
|Ligue 1 Review: Marseille return to second, Montpellier held|
|Eredivisie Review: PSV go nine points clear, Twente steal last-gasp win|
|Tunisia 1 Equatorial Guinea 2 (aet): Balboa brace sends hosts through|
|Klopp encouraged by Leverkusen stalemate, as Dortmund hit bottom|
|No-show again from Mourinho after City draw|
|Pellegrini suggests different styles shown by City and Chelsea|
|Le Roy dejected following Congo´s Africa Cup of Nations exit|
|Bundesliga Review: Dortmund bottom, Paderborn thumped|
|Simeone marvels at Griezmann improvement|
|Emulating Messi will be tough for Neymar - Luis Enrique|
|Ibenge revels in DR Congo fightback|
|Reception delights Lampard on Stamford Bridge homecoming|
|Milan to downsize from San Siro|
|League Two Review: Luton claim Cambridge double, Shrewsbury stay top|
|Matic feels the effects of Liverpool match in City draw|
|West Brom lacked tempo, says Pulis|
|Pochettino remains grounded|
|Lukaku can inspire Everton - Martinez|
|Bayer Leverkusen 0 Borussia Dortmund 0: Frustrating draw leaves BVB bottom|
|Chelsea 1 Manchester City 1: Advantage Mourinho as top two share the spoils|
|Pardew laments lack of guile in Everton defeat|
|Poyet hoping to build on Burnley victory|
|Ancelotti lauds ´fantastic´ Benzema|
|Dyche backs Ings to bounce back after ´off-day´|
|Pearson brushes off ´bonus game´ defeat|
|Eibar 1 Atletico Madrid 3: Griezmann and Mandzukic inspire champions´ response|
|Rodgers delighted with Sturridge´s goalscoring return|
|QPR not as bad as scoreline suggests - Redknapp|
|League One Review: Bradford pushed hard as MK Dons go top|
|United killed the game too much - Van Gaal|
|Hughes hails hat-trick hero Walters|
|Congo 2 Democratic Republic of Congo 4: Mbokani strikes twice in remarkable fightback|
|Talks break down over Fletcher´s West Ham switch|
|Scottish Premiership Review: Highland derby all square|
|Championship Review: Derby and Boro stay in touch with leaders|
|Good enough for Real Madrid or Barcelona? - Luongo is Socceroos´ next superstar|
|Bruce backs Elmohamady after ´horrible afternoon´|
|Crystal Palace 0 Everton 1: Lukaku ends Palace run|
|Stoke City 3 QPR 1: Walters hat-trick seals win for hosts|
|Liverpool 2 West Ham 0: Sturridge on target in long-awaited return|
|West Brom 0 Tottenham 3: Kane at the double to down Albion|
|Manchester United 3 Leicester City 1: Van Gaal´s hosts avenge humiliating defeat|
|Real Madrid 4 Real Sociedad 1: Benzema stars in Ronaldo´s absence|
|Sunderland 2 Burnley 0: Defoe nets in routine victory|
|Roma snap up Doumbia|
|Huddersfield defender Smith stable after being airlifted to hospital|
|Carver: More to come from Cabella|
|Ivory Coast v Algeria: Renard demands success|
|Match winner Troisi hails Socceroo colleagues|
|Ghana v Guinea: Grant´s men tackle team happy with their lot|
|Australia deserved victory - Ki|
|Inzaghi ready to unleash duo against Parma|
|Cahill: Socceroos triumph to super-charge football in Oz|
|Hull City 0 Newcastle United 3: Carver up and running after routine win|
|Stielike: South Korea still champions|
|Recruitment proving difficult for Mancini|
|Postecoglou targets World Cup impact|
|Allegri dismisses talk of Vidal rift|
|Australia 2 South Korea 1 (aet): Troisi seals Socceroos´ maiden Asian Cup title|
|Ibrahimovic questions PSG fans|
|Azpilicueta anticipating ´weird´ Lampard return|
|Sinclair: Milner praise for Villa made my decision easy|
|Van Gaal fumes at questions on Herrera´s future|
|Cork excited about new challenge|
|Arsenal still gunning for glory - Gibbs|
|Quinteros named Ecuador coach|
|Sturridge eager to prove fitness|
|Blanc: ´We were expecting better´|
|Hecking proud of Wolfsburg|
|Boateng urges Bayern to learn from Wolfsburg thrashing|
|Sporting Braga 1 Moreirense 0: Santos the hero for hosts|
|Cordoba complete triple swoop, Levante bring in two|
|Partick Thistle 0 St Mirren 1: Debutant Dayton the hero|
|Rayo Vallecano 1 Deportivo La Coruna 2: Borges debut double downs hosts|
|Bournemouth 2 Watford 0: Championship leaders stroll to success|
|Dordrecht 0 Heerenveen 0: Visitors´ woes compounded by Sinkgraven sale|
|Paris Saint-Germain 1 Rennes 0: Lavezzi goal enough for champions|
|Palace confirm Souare capture|
|Barcelona v Villarreal: Xavi looking to put high-flyers in their place|
|Simeone denies gesture towards referee|
|Wolfsburg 4 Bayern Munich 1: Dost and De Bruyne at the double as hosts honour Malanda|
|Ben Arfa ineligible to play for Nice|
|Ginola calls time on FIFA presidency bid|
|Cork seals Swansea switch|
|Arsenal v Aston Villa: Wenger lauds team spirit|
|Strootman out for longer than expected|
|Southampton v Swansea City: Monk eager for return to form|
|Injury blow for Southampton striker Long|
|Montella confirms Cuadrado will join Chelsea|
|Bordeaux bring in Chantome from PSG|
|Huth suspended for two matches over tweets|
|Udinese v Juventus: Pirlo not taking Serie A lead for granted|
|Carlisle to return home|
|Prince Ali outlines campaign after submitting FIFA president bid|
|Costa must improve behaviour - Pellegrini|
|Olic seals Hamburg return|
|FIFPro planning legal action to protect unpaid players|
|Burnley rule out Liverpool move for Ings|
|Pochettino fumes at Tottenham schedule|
|Cork set for Swansea switch|
|Hull left in the cold by local gas board|
|Ancelotti: No repeat of Ronaldo indiscretion|
|Murray signs Palace extension|
|Garcia: Roma will sign a replacement for Destro|
|Sassuolo v Inter: Ranocchia hopes turning point has come|
|Congo v Democratic Republic of Congo: Neighbours clash in AFCON quarter-final|
|Fletcher in West Ham talks|
|Tunisia v Equatorial Guinea: Favourites wary of hosts|
|Carrick to miss four weeks|
|Figo submits bid for FIFA presidency|
|Costa hit with three-match ban|
|Villa confirm Sinclair loan|
|Hull agree fee for N´Doye|
|Milan clubs should merge, says agent Raiola|
|Redknapp brands Fer speculation ´absolute rubbish´|
|Destro completes Milan move|
|Iraq 2 UAE 3: Khalil´s brace sees off Iraqis|
|Ward-Prowse signs Southampton deal|
|Mandanda: Marseille will turn it around|
|Fuchs backs Schalke goalkeeper Giefer to shine|
|Wenger unlikely to risk Sanchez, could start Gabriel|
|Newcastle would need ´ridiculous´ bid to sell Sissoko|
|Kramer sure of sustained Champions League challenge|
|Sturridge would have steered Liverpool to Wembley - Rodgers|
|South Korea claim underdog status|
|We can handle the pressure, says Postecoglou|
|Cheyrou joins Toronto|
|AFC boss rejects Australia expulsion claims|
|Australia v South Korea: Socceroos eyeing maiden Asian Cup|
|Wolfsburg plan Malanda tribute|
|Blanc: Ibrahimovic, Cavani need to improve partnership|
|NBA´s Kings invest in Sacramento Republic|
|Djukic slams Ronaldo as ´ugly and conceited´|
|Marcelino hails Villarreal´s historic achievement|
|Destro: I want to show Milan are great|
|Copa del Rey Review: Aduriz breaks drought to send Bilbao through|
|Blaszczykowski to miss Leverkusen clash|