A dramatic Kenwyne Jones last minute winner gave the Bluebirds three points to get their play-off push back on track.
Goals from Tony Watt and Kenwyne Jones put the South Wales side in charge going into half time with a 2-0 lead.
The Bluebirds have been known for lacking concentrating at the back after squandering two goal leads in their last two home games against Sheffield Wednesday and Burnley.
That continued on Tuesday night as the home side slowly began to look nervous. The Bees fought back after Jake Bidwell headed in Alan Judge’s corner and Jon Swift netted inside the final quarter of the game.
Cardiff looked very nervy inside the final 10 minutes with Brentford looking like the likely winners, but Scott Malone and Fabio combined to create the chance for Jones, who slotted home from close range to send the Cardiff fans into raptures.
Both sides remain in the same positions before the result, but Cardiff face another tough test on Friday night against Birmingham City who lay one place below in 8th.
Brentford boss, Dean Smith lost his first game in charge of the club and his side are now 5 points off the play offs.
Football League World writer Ashley Williams looks at three things we learned from the game..
1) Cardiff’s great character
The Bluebirds really weathered the storm in the second half and were unable to get out of their own half in the second half.
When the Bees equalised, it looked like they could have gone on to win it. Despite Cardiff’s nervy end to the game, they held out and showed great unity to secure the victory, but are making it very difficult for themselves lately.
They need to close their games out sooner and keep their concentration, even when they are in the league.
2) Should Cardiff sign up their loan star?
Cardiff striker, Tony Watt who is on loan from Charlton Athletic until the 16th January has been a breath of fresh air since his arrival.
The Bluebirds have been criticised for their lack of goal threat, but he has brought a new dynamic to Russell Slade’s side. He scored his second goal in four appearances for the club against Brentford and has now emerged as the clubs number one target for a permanent deal in January.
If his performances continue, Bluebirds fans will be hoping that the former Celtic striker will extend his stay in South Wales, whether that is an extended loan deal or a permanent move to the Cardiff City Stadium.
3) Did Brentford deserve to lose?
Dean Smith thoroughly believed that Brentford should have taken something from the game after their second half display.
His changes in the second half really propelled the side and they looked like they could have gone on to win the game after their equaliser.
The new Brentford boss will see plenty of positives from the game, but a lack of concentration and tiredness cost them.
Cardiff and Brentford fans…What did you make of the game? Did Cardiff deserve all three points? Should Brentford have gone on to win the game? Let us know your thoughts and opinions in the comments below!