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'
|Bilic: Cup run will help in Premier League|
|Pjaca out for up to three weeks|
|Trophies still the focus for Guardiola|
|Mignolet wants ´fair´ Karius battle|
|Ancelotti impressed by motivated Bayern|
|West Ham ´unreservedly condemn´ crowd trouble|
|Allegri praises strike duo after win over Sampdoria|
|De Boer praises two-goal Icardi after vital win|
|Chelsea were ´unlucky´ with missed chances, insists Conte|
|Mourinho: I´ve never had fans like these|
|Nacho´s goal better than my Champions League final volley - Zidane|
|Borussia Dortmund 1 Union Berlin 1 (aet, 3-0 pens): Weidenfeller shootout heroics seal progress|
|Bilic: Crowd trouble distracts from great West Ham win|
|Kompany told me he couldn´t play anymore - Guardiola|
|Liverpool and Manchester United handed home quarter-finals|
|Inter 2 Torino 1: Icardi double alleviates pressure on De Boer|
|Manchester United 1 Manchester City 0: Mata extends Guardiola´s winless run|
|West Ham 2 Chelsea 1: Crowd trouble tarnishes Hammers´ route to quarter-finals|
|Cultural Leonesa 1 Real Madrid 7: Morata and Asensio star in BBC´s absence|
|Bayern Munich 3 Augsburg 1: Green´s first goal sends holders through|
|Juventus 4 Sampdoria 1: Rapid start sets champions on their way|
|Crafty Suarez is world´s best striker - Godin|
|Mancini: Balotelli has wasted years but can bounce back|
|Rami rejected ´risky´ PSG move|
|Neymar would have cost PSG €430m, claims father|
|Sacchi warns Bayern players over Ancelotti temper|
|Valencia ´pleased´ with RFEF bottle ruling|
|Mourinho apologises to Utd fans for Chelsea thrashing|
|Barcelona lash out at ´totally reprehensible´ RFEF comments|
|Jacob leaves Marseille amid rumours of Zubizarreta appointment|
|Lavezzi added to Argentina squad as Dybala drops out|
|Del Bosque: Mourinho had a point on Conte|
|N´Zonzi in talks over Sevilla extension|
|Allardyce successor ´will not be a mercenary´ - Glenn|
|Aubameyang like a rocket, Lewandowski perfect - Riedle|
|RFEF fines Valencia, warns Barca over bottle incident|
|Wenger tells Iwobi to improve his finishing|
|Barcelona without Mathieu for three weeks|
|Kimmich draws inspiration from Xavi|
|Vazquez signs new Madrid deal|
|Higuain the best striker in the world - Nedved|
|Wolfsburg regret De Bruyne, Perisic sales|
|Parejo slams Neymar for ´inciting´ Valencia fans|
|Gundogan predicts ´very lively´ Manchester derby|
|Luis Enrique satisfied with Supercopa workout|
|Messi could join Newell´s after World Cup - Maxi Rodriguez|
|Ibrahimovic wants United to be the boss of City|
|Schmidt on the bus as Lotte book ticket for next round|
|Pogba still adapting to Premier League, says Mourinho|
|Southgate hails influence of demoted Rooney|
|Lille ready to heap more pressure on PSG as Corchia dreams big|
|I´m among top 20 LaLiga coaches, jokes Luis Enrique|
|Brattan earns Socceroos call-up|
|Pochettino pleased with Janssen|
|Klopp never questioned Sturridge quality|
|Barcelona downed by Espanyol in Supercopa|
|Heavy Milan defeat ´just a bump in the road´ - Montella|
|Pochettino wanted Liverpool debutant sent off|
|Klopp happy to entertain as Liverpool youngsters earn their spurs|
|Leverkusen dumped out by 10-man minnows|
|Wenger praises Oxlade-Chamberlain work ethic|
|Wenger praises Oxlade-Chamberlain work ethic|
|Tuchel unaffected by Real Madrid rumours|
|I would like to pick Toure, believe me - Guardiola|
|Genoa 3 AC Milan 0: Unbeaten run comes crashing to an end as Paletta sees red|
|Liverpool 2 Tottenham 1: Sturridge at the double to book quarter-final spot|
|Arsenal 2 Reading 0: Oxlade-Chamberlain brace secures safe passage|
|Football world mourns Carlos Alberto|
|81 per cent win ratio and more goals than Bayern Munich - Two years of Messi, Suarez and Neymar|
|Ridgewell reportedly arrested for drink driving|
|Verratti not leaving PSG - agent|
|Costa competition benefitting Batshuayi, says Conte|
|Pele hails ´friend and brother´ Carlos Alberto|
|Bailly confirms two-month lay-off|
|How Carlos Alberto established his legacy as one of the greats|
|Allegri hints at Marchisio return|
|Lewandowski has not renewed with Bayern - agent|
|Carlos Alberto: Capita´s World Cup triumph in numbers|
|Hull´s Snodgrass out for a month|
|Keita reveals Arsenal, Manchester City, Liverpool snub|
|Mikel not giving up on Chelsea career|
|Former Brazil captain Carlos Alberto dies|
|Guardiola wants to help ´special player´ Aguero|
|Roma welcome back Strootman, Rudiger for Sassuolo clash|
|Wolves confirm Zenga dismissal|
|Bruce lauds Rooney as a world ´great´|
|Raiola made €27m on Pogba move, reveals Juventus director|
|Dortmund injury woes worsen with Aubameyang|
|De Bruyne out of Manchester derby|
|Conte: I always show respect to opponents|
|FIFA fines RFEF over Madrid, Atletico breaches|
|Pedro backs Conte amid Mourinho spat|
|Big clubs would fight for Edwards if he was Brazilian - Pochettino|
|They boo Ronaldo, they booed me as well - Zidane|
|De Boer fed up of sacking talk|
|Neuer: Bayern have no room for error|
|Bilic praises Conte´s ´aggressive´ demeanour|
|Di Maria will bounce back - Motta|
|EFL opens investigation into Watford over ´forged´ bank letter|
|Hummels admits RB Leipzig a serious threat for Bayern|
|Pedro reveals Barcelona talks|
|De Bruyne: I have no problem with Mourinho|
|Casillas: I have not retired from Spain duty|
|Raul backs under-fire Ronaldo for Ballon d´Or glory|
|Mourinho and United must lower expectations - Xavi|
|Hands off! Milan CEO insists Donnarumma will stay|
|Glory coach Lowe accepts ban|
|Scolari extends contract with Guangzhou Evergrande|
|Guardiola eliminated City doubts - De Bruyne|
|Klopp lauds Ings for ´perfect´ response|
|Wenger: Perez needs to take chance|
|Boys to men: Mourinho challenges United players|
|Kompany committed to bargain with City medics|
|´Insipid´ Hazard overlooked for Ballon d´Or|