Nikola Zigic scored in injury time to give Birmingham a dramatic late victory over struggling Ipswich.
The towering striker latched on to Curtis Davies's flick-on and finished well to give the Blues the points with his second goal of the game.
Zigic had put the home side ahead early on with a header straight from a David Murphy long throw.
Lee Martin's 20-yard strike soon after the opener looked to have given Ipswich a draw until Zigic's late intervention.
This ensured that Birmingham capitalised on one of the two games they had in hand over their play-off rivals. Chris Hughton's side are now ninth in the table, two points behind fifth-placed Reading.
Ipswich's defeat, though, was their 11th in 14 matches and leaves them 20th in the division, just three points above the relegation zone.
Travelling to St Andrews, where Birmingham are unbeaten this season, was always going to be a tough challenge for Town, but they gave as good as they got.
In the first half, Boaz Myhill had to palm away Grant Leadbitter's stinging set-piece from the left channel after debutant Town keeper Alex McCarthy got down comfortably to another flicked Zigic header from a Murphy free-kick at the other end.
After the break, Jason Scotland saw an effort deflected wide for Town, while Jonathan Spector failed to find the well-placed Marlon King 12 yards out.
Ipswich could have snatched a potential late winner themselves, but their appeals for a penalty were waved away after Steven Caldwell's tackle on Martin in the box.
However, Zigic had the final word, settling the game in Birmingham's favour in the 91st minute.