Liverpool missed the chance to reduce the gap to the Premier League's top four as Brentford punished their defensive frailties in a deserved victory at the Community Stadium.
In a desperate first half, Liverpool shipped two poor goals amid an inspired performance from the hosts.
The opener came when Ibrahima Konate deflected a corner into his own net after 19 minutes.
Liverpool were unable to deal with Brentford's set-pieces, conceding twice more from corners in the first half only for both goals to be ruled out for offside.
Moments after the second disallowed effort from Yoane Wissa, the Bees striker headed in after Liverpool had sloppily given the ball away.
A triple half-time change from a visibly frustrated Reds' manager Jurgen Klopp, including replacing injured captain Virgil van Dijk, had the desired effect and Liverpool pulled one back through Alex Oxlade-Chamberlain within five minutes of the restart.
At that stage the momentum seemed to be with Liverpool, but Brentford weathered the storm.
With six minutes left, Bryan Mbeumo sealed an impressive success, brushing off Konate in pursuit of a long ball before slotting home.
Brentford are now unbeaten in six games - their best run in the top-flight for more than 80 years - and climb to seventh.
Liverpool, who would have been a point off fourth with a win, stay sixth and two points clear of the Bees.
Konate misery as ragged Reds lose 84-year unbeaten run at Bees
This was another special night under the lights for Brentford with victory against Liverpool added to vibrant wins over Manchester United and Arsenal since their return to the Premier League.
It was also their first victory over Liverpool since 1938.
But for all of their good work, Liverpool's disorganised, error-strewn defensive performance was notable.
Konate was unfortunate with the first goal which flicked his calf, but that corner came from Mbeumo running clean through on the counter-attack and goalkeeper Alisson having to bail out the defence.
The visitors were all at sea at the two subsequent corners, fortunately surviving on both occasions.
They made one mistake too many seconds later, when Harvey Elliott lost the ball attempting a dummy in his own half which allowed Mathias Jensen to set up Wissa.
Konate should have been stronger too in the closing moments as Mbeumo knocked him off the ball before claiming the deserved third goal. It turned into a sorry night for the Liverpool centre-back on his first appearance since reaching the World Cup final with France.
After winning back-to-back games following the league's restart, this was a disappointing setback for Klopp's side.
They have now dropped 23 points in this campaign - one more than they did all last season.
No Toney, no problem for battling Brentford
The win was even more impressive for Brentford given the fact they were without top scorer Ivan Toney, who was not in the squad after being injured in their 2-0 victory at West Ham on 30 December.
It is only their second Premier League win without the striker since their promotion - and it took a team effort to help them triumph.
In the opening moments Bee Mee crucially cleared a Darwin Nunez effort off the line after the Uruguayan had rounded keeper David Raya.
They rattled Liverpool for the rest of the opening period as they swarmed forward in attack and held firm when the tide seemed to be turning in the second half.
Klopp removed half of his defence - Van Dijk, who had a hamstring injury, and Kostas Tsimikas - and sent on Naby Keita to add thrust in midfield.
But after Oxlade-Chamberlain converted Trent Alexander-Arnold's inswinging cross for his first goal in a year, Thomas Frank's men battled hard to deny Liverpool any further clear chances.
At the end, the Bees players and supporters wildly celebrated a win that has left them wondering how far this club can continue to rise.
Player of the match
MbeumoBryan Mbeumo
Brentford
Squad number19Player nameMbeumo
Squad number11Player nameWissa
Squad number6Player nameNørgaard
Squad number16Player nameMee
Squad number3Player nameHenry
Squad number8Player nameJensen
Squad number7Player nameCanós
Squad number10Player nameDasilva
Squad number27Player nameJanelt
Squad number23Player nameLewis-Potter
Squad number30Player nameRoerslev
Squad number14Player nameGhoddos
Squad number29Player nameBech Sørensen
Squad number13Player nameM Jorgensen
Squad number5Player namePinnock
Squad number1Player nameRaya
Line-ups
Brentford
Formation 3-5-2
1Raya
13M Jorgensen5Pinnock16Mee
30Roerslev8Jensen6Nørgaard27Janelt3Henry
19Mbeumo11Wissa
1Raya13M JorgensenBooked at 2mins5Pinnock16Mee30Roerslev8JensenSubstituted forDasilvaat 74'minutes6Nørgaard27JaneltSubstituted forGhoddosat 87'minutes3HenrySubstituted forBech Sørensenat 90+6'minutes19MbeumoSubstituted forCanósat 88'minutes11WissaSubstituted forLewis-Potterat 74'minutesSubstitutes
7Canós10Dasilva14Ghoddos22Strakosha23Lewis-Potter24Damsgaard29Bech Sørensen32Crama35TrevittLiverpool
Formation 4-3-3
1Alisson
66Alexander-Arnold5Konaté4van Dijk21Tsimikas
19Elliott3Fabinho6Thiago Alcántara
11Salah27Núñez15Oxlade-Chamberlain
1Alisson66Alexander-Arnold5Konaté4van DijkSubstituted forMatipat 45'minutes21TsimikasSubstituted forRobertsonat 45'minutes19ElliottBooked at 9minsSubstituted forKeïtaat 45'minutes3Fabinho6Thiago AlcántaraBooked at 57mins11Salah27NúñezBooked at 72mins15Oxlade-ChamberlainSubstituted forJonesat 83'minutesSubstitutes
2Gomez8Keïta17Jones26Robertson28Carvalho32Matip43Bajcetic47Phillips62KelleherReferee:Stuart AttwellAttendance:17,163Live Text
Match ends, Brentford 3, Liverpool 1.
Second Half ends, Brentford 3, Liverpool 1.
Offside, Brentford. Zanka tries a through ball, but Keane Lewis-Potter is caught offside.
Substitution, Brentford. Mads Bech Sørensen replaces Rico Henry.
Curtis Jones (Liverpool) wins a free kick in the defensive half.
Foul by Zanka (Brentford).
Foul by Fabinho (Liverpool).
Saman Ghoddos (Brentford) wins a free kick in the attacking half.
Joël Matip (Liverpool) wins a free kick in the defensive half.
Foul by Sergi Canós (Brentford).
Attempt blocked. Naby Keïta (Liverpool) right footed shot from the centre of the box is blocked.
Substitution, Brentford. Sergi Canós replaces Bryan Mbeumo.
Substitution, Brentford. Saman Ghoddos replaces Vitaly Janelt because of an injury.
Goal! Brentford 3, Liverpool 1. Bryan Mbeumo (Brentford) left footed shot from the centre of the box to the centre of the goal following a fast break.
Substitution, Liverpool. Curtis Jones replaces Alex Oxlade-Chamberlain.
Foul by Fabinho (Liverpool).
Rico Henry (Brentford) wins a free kick in the defensive half.
Attempt missed. Ibrahima Konaté (Liverpool) header from the centre of the box is close, but misses to the left. Assisted by Trent Alexander-Arnold with a cross following a corner.
Corner, Liverpool. Conceded by Rico Henry.
Corner, Liverpool. Conceded by Ben Mee.
Our coverage of your Premier League club is bigger and better than ever before - here's everything you need to know to make sure you never miss a moment