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'
|Messi makes early Barcelona return|
|Ibrahimovic: My next move will be a very big surprise|
|Van Aanholt backs Lens to shine|
|Besiktas complete loan move for Gomez|
|McClaren: No decision on Coloccini future|
|Kane, Kaka hail goalkeeper Rimando|
|Chung eager to become FIFA president|
|Yedlin open to loan move|
|Tigres not scared of River trip - Ferretti|
|MLS Preview: Wright-Phillips, Lampard set to debut|
|´A draw is good for us´ - River´s Gallardo confident of Libertadores success|
|Di Maria poised for PSG switch - Blanc|
|Franjic: Bring on Bangladesh, Tajikistan|
|Van Gaal bemoans De Gea situation|
|MLS All-Stars 2 Tottenham 1: Kane stunner can´t spare Spurs|
|Manchester United 0 Paris Saint-Germain 2: Van Gaal´s defensive frailties exposed|
|Tigres UANL 0 River Plate 0: Visitors lose Gallardo in Copa Libertadores final first leg|
|Penedo parts ways with Galaxy|
|Benitez backs Mihajlovic, Milan to succeed|
|Barnetta joins Union in MLS|
|Allegri critical of Morata´s attitude|
|Franjic targets more A-League glory with City|
|Beto undaunted by Super Cup clash against Barca|
|Advocaat upbeat despite another Sunderland flop|
|McClaren praises Newcastle recruit Mitrovic|
|Payet will improve West Ham - Bilic|
|Pulis confirms interest in Lambert|
|Deila expects tough test in Baku|
|Drogba mobbed by Montreal Impact fans|
|UEFA Champions League Review: Ajax spurn two-goal lead at 10-man Rapid|
|Sunderland´s struggles continue as Doncaster cruise to win|
|Mahrez and Nugent on target in Leicester win|
|Mitrovic tastes debut defeat for Newcastle|
|Celtic 1 Qarabag 0: Boyata snatches crucial win|
|Jablonec 0 Copenhagen 1: Verbic cracker gives Danes the edge|
|Norwich sign Wisdom on loan from Liverpool|
|UEFA Europa League Preview: Koeman plays down importance of Vitesse links|
|Schneiderlin keen to learn from experienced duo|
|Mandzukic´s maiden Juventus goal seals win in Poland|
|Fofana completes Bastia loan|
|Deila delighted that Gordon pledges future to Celtic|
|Grenier ruled out for four months|
|Rooney: United squad ready for title challenge|
|Messi and Neymar available for start of season|
|Szczesny seals Roma switch|
|Benitez cools Mourinho war of words|
|Filipe Luis vows to win back Atletico fans|
|Besiktas in negotiations over Gomez switch|
|Kishna seals Lazio switch|
|Diaby completes Marseille move|
|Platini is bad for FIFA - Prince Ali|
|Bilic keen to make further additions|
|Brady makes Norwich move|
|Southampton complete Caulker loan|
|Rummenigge feels Muller ´will never leave´ Bayern|
|Platini to stand in FIFA presidential election|
|Howedes to remain Schalke skipper|
|Albion sign Hull defender Chester|
|Lucescu defends Fred selection amid doping allegations|
|Fabregas still in love with Arsenal|
|Luis Enrique ´happy´ with Barca´s US trip|
|Mourinho optimistic over Cahill and Costa|
|River owe Tigres´ Esqueda - Mercado|
|Van Gaal expecting big season from Shaw|
|Begovic keen to challenge Courtois|
|Mourinho launches attack on Benitez|
|CONMEBOL ´knocked on a lot of doors´ to keep half-spot - president|
|America 0 Benfica 0 (3-4 on penalties): Primeira Liga champions finally win|
|Napoli striker Higuain ´untouchable´ - Gabbiadini|
|Arsenal´s friendly form will boost confidence - Wenger|
|Nagatomo-Melo swap possible, says agent|
|Chelsea 2 Barcelona 2 (4-2 on penalties): Courtois stars for Premier League champions|
|Eriksen calls for ruthless Spurs|
|Pulis praises Berahino attitude|
|Alderweireld confident of top-four finish|
|Villa ready for tough Spurs clash|
|West Ham edge win on Carrow Road anniversary|
|Kozak scores twice as Villa draw at Wolves|
|Stanislas brace leads Bournemouth past Yeovil|
|Watford slip to friendly defeat at Cardiff|
|Lukaku injury sours Everton win at Dundee|
|UEFA Champions League Review: Fenerbahce draw blank as Monaco impress|
|West Brom earn friendly win over Walsall|
|Vardy at the double as Leicester beat Burton|
|Atletico impress in win over Oviedo|
|Herrera sacked by Mexico after ´punch´|
|Gerrard, Keane and Bradley pull out of MLS All-Star squad|
|Marseille reach Diaby agreement|
|Sammer thrilled with Vidal´s winning mentality|
|Platini expected to launch FIFA presidency bid|
|Romanov sacked me over Barca snub - Korobochka|
|Villa complete Crespo capture|
|Wolfsberger v Borussia Dortmund: Bender praises ´fun but exhausting´ training|
|Okaka swaps Sampdoria for Anderlecht|
|Southampton v Vitesse: Fonte excited for ´dream´ sojourn into Europe|
|Bournemouth agree King compensation|
|West Ham v Astra: Kouyate confident West Ham can progress|
|Vidal completes Bayern switch, signs four-year deal|
|Fabregas calls for Champions League improvement|
|BREAKING NEWS: Filipe Luis completes Atletico return|
|Bayern to present Vidal|
|Wenger unfazed by Mourinho´s spending jibe|
|Pellegrini: Sterling will justify price tag|
|Cavani hit with two-match Uruguay ban|
|Bonucci to remain at Juve until 2020|
|No bids for Berahino - West Brom|
|Putin: Blatter deserves a Nobel prize|
|Howe: Swansea a benchmark for Bournemouth|
|New Parma to play in Serie D|
|Mata vows to hit the goal trail at United|
|Drogba ´perfect fit´ for Montreal|
|Berahino ´not yet´ ready for Tottenham - Irvine|
|Romero lauds caring Van Gaal|
|Jese flying at Real under Rafa|
|Sampdoria unwilling to pay €10m for Balotelli|
|Mourinho talks up Arsenal title chances|
|Hull sign Ryan Taylor, Sam Clucas|
|Kane, Pochettino hail MLS All-Star test|
|Di Santo sorry for swift Werder departure|