Birmingham winger Chris Burke struck at the death to give Chris Hughton's side all three points against Championship strugglers Burnley.
Burke slotted home a David Murphy cross in the 91st minute to lift Blues to eighth in the table.
Jean Beausejour had opened the scoring, reacting quickest to a rebound after Burnley goalkeeper Lee Grant had turned the ball onto his own bar.
Marvin Bartley had equalised from a Ross Wallace corner after half-time.
Did you know?
These clubs have been playing each other for 118 years. This is their 90th competitive contest, with Burnley now holding a 42-30 winning advantage
Hughton's men dominated the opening exchanges with Beausejour giving Birmingham the lead in only the second minute when, after great work by Zigic and Burke down the right, Burke's shot was saved by Grant only for Beausejour to rifle home the loose ball.
On-loan Burnley striker Sam Vokes then saw a long-range shot graze the right-hand post before Keith Treacy tried his luck from 30 yards.
But Birmingham continued to press with Zigic looking the most dangerous, latching onto the end of a David Murphy free-kick only to see the ball trickle wide.
The Serbia international then set up Marlon King after he unselfishly played the ball across to the big frontman, but King could only slice the ball wide with the goal at his mercy.
Barely four minutes after the break, Eddie Howe's side were level when Wallace's corner was headed out by Curtis Davies straight to the boot of Bartley, who volleyed in a deflected shot beyond Boaz Myhill.
Keith Fahey then had a shot go wide after David Edgar had cleared from a Burke corner, before Zigic again saw two headers in quick succession go inches over the bar.
In a frenzied final few minutes, after Nathan Redmond and Murphy combined to find Burke, the lively winger slotted home the winner.
The result extended Birmingham's unbeaten home run to eight games, while at the same time condemning Burnley to their fourth consecutive league defeat.
Birmingham manager Chris Hughton: "We left it very late but the plus to take from it is the fact there is a lot of spirit in the camp and they are a determined group of players.
"We certainly didn't make life as easy for ourselves as we should have done but I was very happy with some of our offensive play.
"We just need to make sure we start working the opposition goalkeeper more than we are doing at the moment."
Burnley manager Eddie Howe: "It's the second time in a row and it's really frustrating to be beaten by a late goal again.
"This one feels worse than Saturday because I thought we had done enough to get a point which would have been a great point here.
"We played well, defended very well but conceded right at the end and it is a really tough one to take."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The game is over, as the referee blows his whistle.90:00 +3:09
Free kick awarded for an unfair challenge on Kieran Trippier by Nathan Redmond. Lee Grant takes the indirect free kick.90:00 +2:05
The ball is swung over by Ross Wallace, clearance by Stephen Carr.90:00 +0:41
Assist on the goal came from David Murphy.90:00 +0:41 Goal scored
Goal! - Chris Burke - Birmingham 2 - 1 Burnley Chris Burke finds the back of the net with a goal from deep inside the penalty box to the bottom right corner of the goal. Birmingham 2-1 Burnley.89:41
Stephen Carr concedes a free kick for a foul on Jay Rodriguez. Andre Amougou takes the free kick.86:47
The free kick is delivered right-footed by David Murphy from right wing.86:47 Substitution
Substitution Keith Treacy goes off and Andre Amougou comes on.86:47 Substitution
Substitution (Birmingham) makes a substitution, with Chris Wood coming on for Marlon King.86:47 Booking
Booking The referee shows Brian Easton a yellow card for unsporting behaviour.86:36
Free kick awarded for a foul by Brian Easton on Chris Burke.85:53
The referee blows for offside. Lee Grant restarts play with the free kick.85:11
Corner taken right-footed by Chris Burke, Curtis Davies takes a shot. Blocked by Michael Duff.84:50
Chris Burke takes a outswinging corner to the near post, clearance by Jay Rodriguez.84:42
A cross is delivered by Stephen Carr, Keith Treacy makes a clearance.83:47
Shot from just outside the box by Keith Treacy goes over the crossbar.83:15
Marlon King takes a shot. Save made by Lee Grant.82:30
Shot from just outside the box by Jay Rodriguez goes over the crossbar.80:37
Corner taken right-footed by Nathan Redmond from the left by-line, Headed effort on goal by Nikola Zigic from inside the penalty box misses to the right of the target.80:05
Centre by Chris Burke, Kieran Trippier manages to make a clearance.
Corner taken by Nathan Redmond, save by Lee Grant.79:32
Chris Burke crosses the ball, Michael Duff manages to make a clearance.75:06
Nathan Redmond has an effort at goal from outside the penalty box which goes wide left of the goal.74:46
Unfair challenge on Curtis Davies by Jay Rodriguez results in a free kick. Free kick taken by Stephen Carr.74:13
The ball is delivered by Keith Fahey, Header on goal by Nikola Zigic from inside the box goes harmlessly over the target.72:49
Nikola Zigic is caught offside. Free kick taken by Lee Grant.72:12
David Murphy produces a cross, David Edgar manages to make a clearance.71:27
Kieran Trippier concedes a free kick for a foul on Nathan Redmond. Chris Burke crosses the ball in from the free kick, Brian Easton makes a clearance.68:30
Boaz Myhill takes the indirect free kick.68:30 Substitution
Substitution Nathan Redmond is brought on as a substitute for Jean Beausejour.68:30
Jay Rodriguez is caught offside.67:24
Short corner taken by Ross Wallace from the left by-line, Nikola Zigic manages to make a clearance.66:48
Ross Wallace delivers the ball from the free kick left-footed from right wing, Boaz Myhill makes a save.66:48 Booking
Booking David Murphy receives a yellow card.66:22
David Murphy concedes a free kick for a foul on Kieran Trippier.65:54
The ball is delivered by Stephen Carr, Michael Duff manages to make a clearance.65:46
The ball is swung over by Chris Burke, Michael Duff makes a clearance.64:31
Unfair challenge on Marlon King by Michael Duff results in a free kick. David Murphy takes the free kick.63:19
Effort on goal by Keith Fahey from just outside the area goes harmlessly over the target.60:41
Stephen Carr crosses the ball, Nikola Zigic takes a shot from just inside the penalty box which clears the bar.58:17 Substitution
Substitution Dean Marney is brought on as a substitute for Chris McCann.57:33
Corner from the right by-line taken by Chris Burke, David Edgar makes a clearance. Keith Fahey has an effort at goal from the edge of the box that misses to the right of the target.56:50
The assistant referee signals for offside against Ross Wallace. Boaz Myhill takes the indirect free kick.55:16
Chris Burke sends in a cross, clearance made by David Edgar.52:32
The ball is sent over by David Murphy, Lee Grant makes a save.52:14
The official flags Nikola Zigic offside. Free kick taken by Lee Grant.51:10
The assistant referee signals for offside against Nikola Zigic. Indirect free kick taken by Lee Grant.49:32
Chris McCann gives away a free kick for an unfair challenge on Nikola Zigic. The free kick is delivered right-footed by Jean Beausejour from left channel, David Edgar manages to make a clearance.48:52 Goal scored
Goal! - Marvin Bartley - Birmingham 1 - 1 Burnley A goal is scored by Marvin Bartley from just outside the area to the top left corner of the goal. Birmingham 1-1 Burnley.48:15
Corner crossed in by Ross Wallace, Nikola Zigic makes a clearance.47:19
Jean Beausejour gives away a free kick for an unfair challenge on Ross Wallace. Direct strike on goal from the free kick comes in from Ross Wallace, Stephen Carr gets a block in.47:06
Keith Treacy crosses the ball, clearance made by Steven Caldwell.46:31
Foul by Nikola Zigic on Marvin Bartley, free kick awarded. Indirect free kick taken by Kieran Trippier.45:01
The referee starts the second half.45:00 +1:15 Half time
Half Time It is the end of the first-half.43:43
The ball is sent over by Ross Wallace, clearance by Stephen Carr.43:06
Ross Wallace takes a inswinging corner from the right by-line to the near post, Nikola Zigic manages to make a clearance.42:56
Kieran Trippier crosses the ball, David Murphy gets a block in.41:00
Shot from outside the area by Chris Burke misses to the left of the target.40:22
The official flags Jay Rodriguez offside. Free kick taken by Boaz Myhill.38:38
Sam Vokes concedes a free kick for a foul on Curtis Davies. Boaz Myhill takes the free kick.37:54
Free kick awarded for an unfair challenge on Michael Duff by Nikola Zigic. Indirect free kick taken by Lee Grant.35:58
Sam Vokes takes a shot. Save by Boaz Myhill.34:49
Marlon King produces a right-footed shot from deep inside the penalty area which goes wide of the left-hand post.34:09
Kieran Trippier sends in a cross.32:30
Free kick awarded for a foul by Marvin Bartley on Jonathan Spector. Chris Burke delivers the ball from the free kick right-footed from left wing, Lee Grant makes a save.32:20
The ball is swung over by Chris Burke, save made by Lee Grant.29:28
Jean Beausejour takes the outswinging corner, David Edgar manages to make a clearance.29:24
The ball is delivered by Jean Beausejour, Kieran Trippier gets a block in.28:40
Nikola Zigic is penalised for a handball. David Edgar takes the free kick.27:17
Effort from long range by Keith Treacy goes wide right of the target.25:15
Foul by Jay Rodriguez on Keith Fahey, free kick awarded. Stephen Carr crosses the ball in from the free kick.23:37
Unfair challenge on Jonathan Spector by Marvin Bartley results in a free kick. A cross is delivered by David Murphy, Header by Nikola Zigic from deep inside the penalty area misses to the right of the target.23:30
A cross is delivered by David Murphy, clearance by David Edgar.22:31
The ball is swung over by Jean Beausejour, Kieran Trippier gets a block in.19:41
David Murphy crosses the ball, save made by Lee Grant.18:12
The ball is delivered by Ross Wallace.17:30
The ball is crossed by Jean Beausejour.16:48
The referee blows for offside. Indirect free kick taken by Boaz Myhill.16:27
The ball is swung over by Brian Easton, Curtis Davies manages to make a clearance.14:04
Headed effort from close range by Keith Treacy goes wide left of the goal.13:04
Sam Vokes produces a right-footed shot from just outside the box that goes wide left of the goal.11:54
Outswinging corner taken from the left by-line by Jean Beausejour, Headed effort on goal by Nikola Zigic from inside the penalty box misses to the right of the target.11:42
Jean Beausejour delivers the ball, clearance made by Michael Duff.10:16
The offside flag is raised against Marlon King. David Edgar takes the free kick.8:54
Chris Burke takes a shot. Save made by Lee Grant.7:46
Brian Easton challenges Jonathan Spector unfairly and gives away a free kick. Curtis Davies restarts play with the free kick.7:05
The assistant referee signals for offside against Marlon King. Free kick taken by Lee Grant.5:03
The referee penalises Marlon King for handball. Lee Grant takes the indirect free kick.1:48
The assist for the goal came from Chris Burke.1:48 Goal scored
Goal! - Jean Beausejour - Birmingham 1 - 0 Burnley Jean Beausejour grabs a goal from close in high into the middle of the goal. Birmingham 1-0 Burnley.0:00
The game begins.
Live data and text provided by our data suppliers