Birmingham recorded their third successive home win with a 2-1 victory over Brentford to leapfrog the London club and boost their Sky Bet Championship play-off challenge.

For the second time in six days Jacques Maghoma was on the mark for Birmingham - his fifth goal of the season - in the 55th minute.

Brentford hit back with a deserved equaliser from Phillip Hofmann but their hopes of collecting a point disappeared when Maikel Kieftenbeld rammed home an 89th-minute winner.

Brentford had the majority of the play but in the end they slumped to a narrow defeat which means that they now have failed to win on their last eight visits to St. Andrew's.

Conspicuous by his absence was Birmingham winger Demarai Gray, with Blues boss Gary Rowett confirming after the game that a Premier League club has triggered the buy-out clause in the 19 year-old's contract and he has been given permission to speak to the interested party.

Ryan Woods was tenacious for Brentford in his bid to open up Birmingham in the first half, and he created a good opportunity for himself only to mis-fire when cutting in from the left.

It was really a battle of strength as Brentford slowly got on top midway through the opening 45 minutes, with the astute contributions of Alan Judge often instrumental.

Image: Birmingham City's Jacques Maghoma celebrates after scoring their first goal against Brentford

Birmingham's Clayton Donaldson could make no impact against his former club and in the closing stages of the first half suffered a back injury which appeared to restrict his movement. He was subsequently replaced by Huddersfield loanee James Vaughan.

Jon Toral headed just wide from a Paul Caddis cross in the 40th minute but was fortunate not to collect a red card for a strong tackle on Jake Bidwell. The challenge caused considerable discontent among the other Brentford players, with James Tarkowski also booked.

Toral remaining on the field proved highly beneficial as the Arsenal loanee linked up with Maghoma to break the stalemate in the 55th minute.

In a swiftly executed move, Toral put Maghoma in possession and the former Sheffield Wednesday player showed a clean pair of heels before scoring with a raking cross-shot.

The goal resulted in some frantic play, with Brentford pressuring Birmingham to such an extent that the Midlands club often found themselves with their backs to the wall in their bid to maintain their slender lead.

They were extremely fortunate to survive as Judge collected a through pass and raced clear but with only Tomasz Kuszczak to beat, Brentford's leading goalscorer ballooned the ball high over the bar.

But in the 77th minute, Judge attempted a long-range shot and this time he was on target. Kuszczak could only block the effort and the ball bounced back to substitute Hofmann to tap into an empty net.

Birmingham, however, hit back and strong running by Vaughan enabled him to square the ball across Brentford's goal for the unmarked Kieftenbeld to notch the winner from close range.

Birmingham boss Gary Rowett:

"We have won three games, drawn two and lost one in the last six games and are now only three points behind one of the really big teams in our division. We are massively punching above our weight but we now have the opportunity to strengthen our attacking options as we have not scored enough goals recently."

Brentford boss Dean Smith:

"It was disappointing as I thought we were the better team for long periods. It was a compliment to us how deep Birmingham played. They certainly frustrated their own supporters in the first half and they probably scored against the run of play on a counter attack."