Brentford striker Ollie Watkins scored a late winner against Middlesbrough to help the Bees keep pace with their Championship promotion rivals.
Julian Jeanvier put the hosts ahead midway through the first half at Griffin Park when he turned in Ethan Pinnock’s header across goal.
In a frantic spell in the second half, Lewis Wing levelled from 25 yards before Bryan Mbeumo restored the lead for the Bees.
Boro levelled again three minutes later through Ashley Fletcher’s header but Watkins struck from close range to seal the win.
The result means Brentford remain in fourth and are two points behind third-placed Fulham and second-placed Leeds United.
Brentford could drop to fifth depending on the result when Leeds take on fifth-placed Nottingham Forest in Saturday’s late Championship fixture.
Following four straight victories around Christmas, Boro are now without a win in five games and are just seven points above the relegation zone in 18th.
Brentford’s opener came courtesy of goalline technology as Middlesbrough scrambled to clear Jeanvier’s shot.
That goal came soon after the hosts were denied an opener of their own when Josh Dasilva nodded the ball goalbound before it bounced across the face of goal prior to Dael Fry’s frantic clearance.
Boro were level for a first time just before the hour mark through Wing’s fine strike, but just two minutes later Mbeumo’s shot took a deflection off Harold Moukoudi and in.
The visitors wasted no time in levelling again when Fletcher nodded in from a corner.
Watkins rescued three points late on for Thomas Frank’s side as he found the net for the 20th time in the Championship this season.