Match ends, Brentford 1, Derby County 3.
Derby County scored three goals in the last 10 minutes for a dramatic comeback win at Brentford that ended an eight-game winless run in the Championship.
The Rams, who last won in the league on Boxing Day, controlled the first half, but were kept at bay by an inspired display from goalkeeper David Button.
Alan Judge's 20-yard strike gave the hosts the lead against the run of play.
But shots from Jeff Hendrick and Cyrus Christie put the Rams ahead before Chris Martin settled it on the break.
Only Button's heroics had stopped Derby, playing their second game under new head coach Darren Wassall following Paul Clement's shock sacking, from taking a deserved lead in a dominant first-half performance.
Hendrick forced a fine double save, Darren Bent also saw an effort kept out, and the keeper did brilliantly to stop Johnny Russell's low strike.
Judge's fierce shot seemed set to at least end a run of two defeats for the west Londoners.
But the Rams, buoyed by the introduction of both Martin and Tom Ince as substitutes, piled forward in the latter stages to earn a win that took them up to fifth in the table.
Hendrick scored from a tight angle, Christie struck his first Rams goal in 74 appearances and Martin scored on the counter-attack after Jake Bidwell had an effort cleared off the line at the other end.
Brentford head coach Dean Smith:
"They were more powerful and more aggressive than us and David Button kept us in it.
"The game is decided on fine margins and it could have been 2-2, but they got the third, which for me is academic.
"They got the equaliser, we lost half a yard and they gained half a yard, but we still showed enough character to create a couple of chances after that."
Derby head coach Darren Wassall:
"We were excellent and I thought we created enough to win two or three games.
"We started on the front foot, were aggressive and full of determination and desire, but their keeper was inspired.
"Undeservedly we went behind and it would have been easy to feel sorry for ourselves but it's a testament to the character in that dressing room that they rolled their sleeves up and continued to dominate the game and control it, but also got the equaliser and another two goals."
Have you added News Alerts in the BBC Sport app? Simply head to the My Alerts menu in the app - and don't forget you can also add score alerts for your favourite football team, the Six Nations, and more.
- 10McEachranBooked at 30minsSubstituted forSwiftat 70'minutes
- 17KerschbaumerSubstituted forCanosat 85'minutes
- 21VibeSubstituted forDjuricinat 73'minutes
- 26HansonSubstituted forBlackmanat 69'minutes
- 11RussellSubstituted forInceat 76'minutes
- 10BentSubstituted forMartinat 59'minutes
- Darren Drysdale
- Shots on Target
Second Half ends, Brentford 1, Derby County 3.
Goal! Brentford 1, Derby County 3. Chris Martin (Derby County) right footed shot from the centre of the box to the bottom left corner. Assisted by Tom Ince following a fast break.
Attempt blocked. Jake Bidwell (Brentford) header from the centre of the box is blocked. Assisted by Alan Judge with a cross.
Corner, Brentford. Conceded by Markus Olsson.
Attempt missed. Marco Djuricin (Brentford) header from the centre of the box is just a bit too high. Assisted by Maxime Colin with a cross following a corner.
Corner, Brentford. Conceded by Cyrus Christie.
Corner, Brentford. Conceded by Richard Keogh.
Foul by Markus Olsson (Derby County).
Ryan Woods (Brentford) wins a free kick in the defensive half.
Substitution, Brentford. Sergi Canos replaces Konstantin Kerschbaumer.
Attempt missed. Marco Djuricin (Brentford) left footed shot from the centre of the box is too high. Assisted by Konstantin Kerschbaumer.
Goal! Brentford 1, Derby County 2. Cyrus Christie (Derby County) right footed shot from the right side of the six yard box to the high centre of the goal.
Attempt missed. Alan Judge (Brentford) left footed shot from outside the box misses to the right.
Goal! Brentford 1, Derby County 1. Jeff Hendrick (Derby County) right footed shot from the right side of the six yard box to the bottom right corner. Assisted by Nick Blackman.
Substitution, Derby County. Tom Ince replaces Johnny Russell.
Substitution, Brentford. Marco Djuricin replaces Lasse Vibe.
Corner, Derby County. Conceded by Nico Yennaris.
Substitution, Brentford. John Swift replaces Josh McEachran.
Attempt missed. Konstantin Kerschbaumer (Brentford) left footed shot from outside the box is too high. Assisted by Ryan Woods.