Match ends, Brentford 3, Bournemouth 1.
Brentford rekindled their play-off bid as Bournemouth missed the chance to return to the top of the Championship.
The Bees went ahead through Jonathan Douglas, who rifled home after Yann Kermorgant was caught in possession.
But then a Brentford mistake let in Marc Pugh, who hit the post but buried the rebound to level the scores.
Alex Pritchard fired in a 35-yard free kick before half time and Pritchard crossed for Chris Long to add a third late in the game.
Half-time substitute Ryan Fraser had revitalised Bournemouth after an off-key first period, but was denied by the foot of the post and then by onrushing keeper David Button.
As the visitors poured forward, Brentford's Jota also hit the frame of the goal and was denied twice by keeper Artur Boruc in the dying minutes, but substitute Long's first goal for Brentford finally settled an enthralling end-to-end match between two of the Championship's unlikeliest promotion contenders.
The Bees, who announced this week that boss Mark Warburton would leave at the end of the season, struck first when Kermorgant's hesitation was punished as the lively Pritchard crossed and Douglas made no mistake with a measured left-foot finish.
Chants of "Warburton, Warburton" could immediately be heard around Griffin Park as the home fans made their support clear.
But Bournemouth levelled when Toumani Diagouraga inadvertently deflected a through ball into the path of Pugh, who rounded Button and though his first effort hit the post, he volleyed in the rebound.
Boruc was rescued by Steve Cook's goal-line clearance from an Andre Gray effort, but the Pole was found wanting as Pritchard's curling free-kick flew to the goalkeeper's left and an attempted punch left both ball and keeper nestling in the net.
Warburton is leaving as he disagrees with owner Matthew Benham's desire for a more statistics-based approach to recruitment.
But a wholehearted display from his players, who had to defend for their lives after the break, ensured Brentford prevailed by three to one in the day's most important statistic.
Brentford manager Mark Warburton:
"It was a fantastic reaction from a very talented squad of players. The character and commitment, and all these words that you use time and time again, were all there. They were outstanding.
"It would be disrespectful not to stay focused. I've worked with many of this squad of players for almost four years and they deserve nothing less than that.
"I'm sure there are 12 or 14 clubs looking at the play-offs and the Premier League, and we've got 14 games now to be best prepared and see where we can get."
Bournemouth manager Eddie Howe:
"The players responded very well in the second half and we knocked on the door and created enough chances to win two games.
"We didn't get that elusive equaliser and ultimately the only criticism I had from the game - apart from the goals - was the way we chased the game in the final 10 minutes.
"We were chasing the game because time was running out and we were against the clock. The decision-making with 10 minutes to go wasn't particularly good."
- 10OdubajoBooked at 80mins
- 5CraigBooked at 88mins
- 15DallasBooked at 86mins
- 20DiagouragaSubstituted forMcCormackat 74'minutes
- 18JudgeSubstituted forToralat 60'minutes
- 19GraySubstituted forLongat 69'minutes
- 3S Cook
- 11DanielsSubstituted forA Smithat 76'minutes
- 30RitchieBooked at 35minsSubstituted forFraserat 45'minutesBooked at 67mins
- 18KermorgantBooked at 16minsSubstituted forPitmanat 63'minutes
- 13WilsonBooked at 45mins
- 15A Smith
- Mike Dean
- Shots on Target
Second Half ends, Brentford 3, Bournemouth 1.
Attempt blocked. Callum Wilson (Bournemouth) right footed shot from the left side of the box is blocked.
Corner, Bournemouth. Conceded by Stuart Dallas.
Attempt saved. Alex Pritchard (Brentford) right footed shot from outside the box is saved in the top left corner. Assisted by Moses Odubajo.
Goal! Brentford 3, Bournemouth 1. Chris Long (Brentford) right footed shot from very close range to the centre of the goal. Assisted by Alex Pritchard with a cross following a fast break.
Attempt missed. Jota (Brentford) right footed shot from the right side of the box is high and wide to the left. Assisted by Moses Odubajo.
Attempt saved. Alex Pritchard (Brentford) right footed shot from the centre of the box is saved in the top centre of the goal. Assisted by Jon-Miquel Toral with a cross.
Attempt saved. Jota (Brentford) left footed shot from the right side of the box is saved in the top centre of the goal. Assisted by Moses Odubajo.
Attempt missed. Callum Wilson (Bournemouth) header from very close range is close, but misses to the right. Assisted by Steve Cook with a headed pass following a corner.
Corner, Bournemouth. Conceded by Moses Odubajo.
Tony Craig (Brentford) is shown the yellow card for a bad foul.
Callum Wilson (Bournemouth) wins a free kick on the right wing.
Foul by Tony Craig (Brentford).
Corner, Brentford. Conceded by Steve Cook.
Attempt blocked. Chris Long (Brentford) right footed shot from the centre of the box is blocked. Assisted by Alex Pritchard with a headed pass.
Attempt saved. Jota (Brentford) left footed shot from the centre of the box is saved in the bottom left corner. Assisted by Alex Pritchard.
Stuart Dallas (Brentford) is shown the yellow card for a bad foul.
Ryan Fraser (Bournemouth) wins a free kick on the right wing.
Foul by Stuart Dallas (Brentford).