Middlesbrough's fading hopes of an automatic-promotion spot took a battering at the Riverside Stadium when Brentford came from behind to win 2-1.
Ashley Fletcher's poacher's finish in the sixth minute looked to have put Boro on track for a third win in four undefeated games in the race to the Premier League.
But a victory that was very much required because of wins for Norwich, Sheffield United and Leeds was taken away from Boro in the final 20 minutes, leaving them 12 points off the top two.
Defender Ryan Shotton helped Henrik Dalsgaard's drive into his own net after some poor defending in the 70th minute and that was followed by Said Benrahama's winner three minutes later.
It was only Brentford's second away win of the campaign and left Middlesbrough fans questioning Tony Pulis' decision to replace striker Britt Assombalonga with full-back George Friend when they led.
The hosts were never convincing even though Brentford had such a poor away record.
Fletcher rewarded Pulis' recent faith in him by scoring for a second home game in a row to edge Boro ahead.
The former West Ham striker reacted first in the area to force a finish over the line after goalkeeper Daniel Bentley had spilled Mo Besic's low drive from 20 yards.
That opening goal arrived after Middlesbrough midfielder Jonny Howson and Brentford striker Neil Maupay had seen decent lobbed efforts drop the wrong side of the upright.
Brentford then had the better of the chances. In fact they had the ball in the net twice and each occasion referee Jeremy Simpson – who came under-fire from the home fans too – ruled them out.
The first was when Maupay was deemed to be offside as he headed in from eight yards and then the striker was adjudged to have fouled George Saville moments before Sergi Canos powered low into the net.
Canos was the main threat and had two fantastic efforts either side of the break when he must have thought he was going to level things up.
His first was a thunderous drive that crashed against the crossbar and his curling second effort after the interval saw Middlesbrough goalkeeper Darren Randolph turn over with a fantastic one-handed stop.
Boro, whose decision to take off Assombalonga and replace him with the fit-again Friend led to sarcastic chants at Pulis, came within inches of a second when Fletcher headed Shotton's deep cross just wide of the far post.
But Shotton turned into his own net at the other end when Dalsgaard was handed the chance to shoot towards goal after Saville headed weakly away.
Then Brentford took the lead in the 73rd minute. This time Dalsgaard, making the most of freedom down the right, teed up Benrahama in the box to power first time inside Randolph's bottom corner.
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By Press Association Sport staff');
ga('pacontentapi.set', 'dimension2', '574dce0d-d070-4ee3-92d1-f15be2daf839');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:club-news,paservice:sport:football,paservice:sport:match-reports');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Brentford dent Boro\u2019s automatic-promotion hopes'});