Bristol City's six-season spell in the Championship came to an end with a home defeat by Birmingham.
Needing victory to avoid the drop to League One, the Robins fell behind when Wade Elliott slotted into the bottom corner after Nathan Redmond's run.
The home side missed a good chance to level when Sam Baldock fired narrowly wide from 20 yards after Steve Davies's knockdown.
But Blues held on to send Bristol City down with three games remaining.
Bristol City's Championship slide
Promoted to the second tier as League One runners-up in 2006-07, the Robins finished fourth in the Championship the following season and lost the play-off final at Wembley. They finished 15th in 2010-11 after two successive 10th placed finishes. The Robins ended last season 20th.
Sean O'Driscoll's appointment in mid-January had seen a significant upturn in results at Ashton Gate.
But poor away form and now back-to-back home defeats in the space of four days have proved their downfall.
Elliot scored the only goal of the game, slipping the ball past Tom Heaton in the 16th minute after a clever run and pass by Redmond, to move Birmingham up to 12th in the table.
The hosts were inches away from an equaliser in the 39th minute when Davies drilled the ball across the face of goal and the onrushing Baldock just failed to make contact at the far post.
The Championship's bottom club should then have levelled through Baldock but he decided to take his shot early and visiting keeper Jack Butland saved smartly.
Baldock spurned yet another good opening after 69 minutes when he connected well with Davies's knock-down but his 20-yard effort went wide.
And the game ended with Birmingham on top, Chris Burke beating Heaton with a low shot that Greg Cunningham cleared off the line.
Bristol City manager Sean O'Driscoll:
"That result and performance sums up the club's season. The players gave it everything in the second half, but couldn't take the chances.
"We needed promotion form when I took over and that is not easy with the same group of players when you are bottom of the table.
"There will be changes in the summer and we will do our best to provide a vibrant young team, who can take the club up again.
"It is no good having an academy if you are not ready to use the players it produces. The fans have stuck behind us brilliantly and we want to reward that."
Birmingham boss Lee Clark:
"We are not quite mathematically safe and it would be nice to take care of that with a good result in front of our own fans on Saturday against Leeds.
"We owe them a big performance because we have not been at our best in recent home games.
"Now I want a really big effort at St Andrews because there are a lot of positives to take from the second half of our season."
- 01 Heaton
- 05 Nyatanga
- 17 Cunningham
- 19 Moloney
- 39 Bates (Foster - 86' )
- 08 Kilkenny (Ajala - 89' )
- 10 Kelly
- 21 Anderson (Burns - 76' )
- 27 Adomah
- 07 Baldock
- 16 Davies
- 22 Gerken
- 02 Foster
- 03 Wilson
- 06 Carey
- 11 Howard
- 35 Ajala
- 29 Burns
- 01 Butland
- 06 Davies
- 27 Hancox
- 28 Caddis
- 30 Robinson
- 32 Ferguson (Burke - 64' )
- 12 Morrison
- 14 Gomis (Mullins - 63' )
- 15 Elliott
- 22 Redmond Booked
- 19 Zigic (Thomas - 76' )
- 13 Doyle
- 04 Caldwell
- 07 Burke
- 08 Mullins
- 33 Reilly
- 11 Lovenkrands
- 20 Thomas
Live Text Commentary
Full Time The referee signals the end of the game.89:27
Liam Kelly takes a shot. Blocked by Wade Elliott.88:25 Substitution
Substitution Toby Ajala is brought on as a substitute for Neil Kilkenny.87:59
Christopher Burke takes a shot. Save made by Tom Heaton.85:44 Substitution
Substitution Richard Foster comes on in place of Matthew Bates.82:40
Sam Baldock takes a shot. Jack Butland makes a save.82:00
Foul by Curtis Davies on Albert Adomah, free kick awarded. Direct free kick taken by Albert Adomah.81:22
Christopher Burke takes a shot. Clearance made by Lewin Nyatanga.80:30
Corner taken right-footed by Neil Kilkenny from the right by-line, Steven Davies takes a shot. Save by Jack Butland.80:01
Steven Davies takes a shot. Blocked by Curtis Davies.77:55
Corner taken by Wade Elliott from the left by-line played to the near post, Wes Burns makes a clearance.77:04
Wes Burns concedes a free kick for a foul on Paul Caddis. Christopher Burke takes the free kick.75:14 Substitution
Substitution Wes Burns joins the action as a substitute, replacing Paul Anderson.75:14 Substitution
Substitution Wes Thomas joins the action as a substitute, replacing Nikola Zigic.75:14
Ravel Morrison is ruled offside. Free kick taken by Tom Heaton.73:39
Outswinging corner taken right-footed by Neil Kilkenny, Curtis Davies manages to make a clearance. Outswinging corner taken by Albert Adomah.71:07 Booking
Booking Nathan Redmond receives a caution for unsporting behaviour.70:59
The referee blows for offside. Tom Heaton takes the direct free kick.67:51
Sam Baldock produces a right-footed shot from just outside the box that misses to the right of the target.67:14
Shot from outside the box by Ravel Morrison misses to the left of the target.
Substitution Christopher Burke on for Shane Ferguson.62:58 Substitution
Substitution Hayden Mullins replaces Morgaro Gomis.61:16
Outswinging corner taken by Neil Kilkenny.58:04
Outswinging corner taken by Shane Ferguson from the right by-line, save by Tom Heaton.56:55
Foul by Steven Davies on Paul Robinson, free kick awarded. Jack Butland takes the direct free kick.54:12
Handball decision goes against Morgaro Gomis. Albert Adomah fires a strike on goal direct from the free kick.53:10
Nathan Redmond challenges Greg Cunningham unfairly and gives away a free kick. Free kick taken by Greg Cunningham.51:51
Neil Kilkenny takes the inswinging corner, clearance by Nikola Zigic.48:04
Sam Baldock takes a shot. Save by Jack Butland. Corner taken by Neil Kilkenny played to the near post, Morgaro Gomis makes a clearance.46:34
Outswinging corner taken by Neil Kilkenny from the right by-line.46:10
Handball by Nathan Redmond. Tom Heaton restarts play with the free kick.45:35
Liam Kelly challenges Ravel Morrison unfairly and gives away a free kick. Mitch Hancox takes the direct free kick.45:01
The referee gets the second half started.45:00 +1:20 Half time
Half Time The match has reached half-time.45:00 +0:41
Neil Kilkenny takes the outswinging corner, Lewin Nyatanga takes a shot. Comfortable save by Jack Butland.41:17
Shot from just outside the box by Nathan Redmond misses to the right of the goal.38:55
Effort from deep inside the area by Steven Davies misses to the left of the goal.35:36
Nikola Zigic is caught offside. Tom Heaton takes the direct free kick.34:53
Outswinging corner taken right-footed by Albert Adomah from the right by-line.31:41
Ravel Morrison fouled by Liam Kelly, the ref awards a free kick. Free kick taken by Jack Butland.30:12
The referee blows for offside. Tom Heaton takes the direct free kick.29:22
Outswinging corner taken from the right by-line by Neil Kilkenny, Nikola Zigic makes a clearance. Liam Kelly takes a shot. Save by Jack Butland.27:44
The official flags Sam Baldock offside. Direct free kick taken by Paul Robinson.24:58
Free kick awarded for a foul by Albert Adomah on Wade Elliott. Strike on goal comes in from Shane Ferguson from the free kick.24:40
Liam Kelly concedes a free kick for a foul on Wade Elliott. Direct free kick taken by Wade Elliott.21:06
Corner taken right-footed by Neil Kilkenny from the right by-line, clearance made by Paul Robinson.19:42
Shot by Ravel Morrison from just outside the area goes over the net.17:55
The assistant referee flags for offside against Nikola Zigic. Tom Heaton takes the free kick.15:39
The assist for the goal came from Nathan Redmond.15:39 Goal scored
Goal! - Wade Elliott - Bristol C 0 - 1 Birmingham Goal scored by Wade Elliott from the edge of the penalty area to the bottom left corner of the goal. Bristol City 0-1 Birmingham.13:47
Nikola Zigic takes a shot. Save made by Tom Heaton.12:26
Corner taken by Neil Kilkenny played to the near post, Ravel Morrison manages to make a clearance. Outswinging corner taken right-footed by Neil Kilkenny from the right by-line. Liam Kelly has a shot on goal from outside the box which misses left.11:33
Effort from long range by Liam Kelly goes wide right of the target.9:59
Outswinging corner taken right-footed by Neil Kilkenny, Paul Robinson makes a clearance.9:19
Liam Kelly fouled by Ravel Morrison, the ref awards a free kick. Steven Davies takes the free kick.2:26
Short corner taken by Neil Kilkenny from the right by-line.0:00
The ref blows the whistle to start the match.
Live data and text provided by our data suppliers