Yoane Wissa scored a late equaliser as Brentford held Liverpool to a draw in a thrilling encounter at the Brentford Community Stadium.
Wissa's dinked finish over Alisson rescued a point for the hosts, who matched Jurgen Klopp's team for long spells and created enough opportunities to claim all three points.
Ethan Pinnock had given Thomas Frank's side a deserved early lead, poking home from close range after Ivan Toney flicked Sergi Canos' low cross into the defender's path.
Diogo Jota brought the visitors level just three minutes later, rising unmarked to head Jordan Henderson's looping cross into the corner from the edge of the six-yard box.
Mohamed Salah's 100th Premier League goal for Liverpool put the Reds ahead for the first time in the match, only for Vitaly Janelt to equalise once more after Pontus Jansson had rattled the crossbar.
Curtis Jones restored the visitors' lead with a long-range drive that took a wicked deflection off Kristoffer Ajer on its way in, but Brentford - and Wissa - had the last word.
The draw lifts unbeaten Liverpool a point clear at the top of the Premier League, with the Bees climbing to ninth.
- 'It's what we dream for' - Mohamed Salah's big Liverpool moment spoilt by brilliant Bees
- Relive Brentford v Liverpool, plus all the rest of Saturday's Premier League matches
- Visit the Brentford page
- Visit the Liverpool page
Salah's century ruined by magnificent Bees
Brentford have come a long way since their last meeting with Liverpool - a 4-0 FA Cup quarter-final defeat in the 1988-89 season - and they certainly gave the Reds a run for their money in a pulsating, breathless contest that could have gone either way.
Both teams had efforts cleared off the line in a frantic opening, Ajer denying Salah with a last-gasp lunge before Joel Matip hacked Bryan Mbeumo's effort out of harm's way at the other end.
Toney and Frank Onyeka also went close for the Bees, who eventually took a deserved lead from the unlikeliest of sources, Pinnock sliding home for his first Premier League goal.
The hosts were in front for just three minutes, however, as Jota headed Henderson's delivery beyond David Raya for his third league goal of the campaign.
The visitors ended the first half in the ascendency and it took a fabulous piece of goalkeeping by Raya to deny Jota his second of the game after Jones' shot had rebounded off the post and into the Portuguese's path.
The Brentford goalkeeper managed to get a hand to Salah's effort nine minutes into the second half, but was unable to prevent it crossing the line for the Egyptian's 100th league goal for the Reds.
Salah is the 13th player to reach a century of league goals for the club, and the fourth to do so in the Premier League era after Robbie Fowler, Steven Gerrard and Michael Owen.
Undeterred, Frank's side kept pushing forward and equalised once more through Janelt, with Jones unable to get to the ball before it crossed the line.
Jones' thunderous drive put Liverpool back in the driving seat and Salah should have given the Reds a crucial two-goal cushion, but the 29-year-old's chipped effort landed on the roof of the net.
That miss proved costly as Wissa - who had only been on the pitch a matter of minutes after replacing Christian Norgaard - clipped the ball over the onrushing Alisson to complete the scoring.
That was not the end of the drama, however.
Toney rifled the ball into the bottom corner with three minutes remaining to send the home fans into raptures, only for the offside flag to cut short their celebrations.
But Frank and his players were given a fantastic reception at the final whistle after claiming a hard-earned point that continues their fantastic start to life in the top flight.
Player of the match
with an average of 7.71
Squad number17Player nameToney
Squad number1Player nameRaya
Squad number19Player nameMbeumo
Squad number11Player nameWissa
Squad number3Player nameHenry
Squad number5Player namePinnock
Squad number27Player nameJanelt
Squad number6Player nameNørgaard
Squad number20Player nameAjer
Squad number18Player nameJansson
Squad number15Player nameOnyeka
Squad number7Player nameCanós
Squad number22Player nameM Jorgensen
Squad number26Player nameBaptiste
Squad number11Player nameMohamed Salah
Squad number20Player nameDiogo Jota
Squad number17Player nameJones
Squad number14Player nameHenderson
Squad number3Player nameFabinho
Squad number4Player namevan Dijk
Squad number10Player nameMané
Squad number1Player nameAlisson
Squad number9Player nameRoberto Firmino
Squad number26Player nameRobertson
Squad number32Player nameMatip
Squad number66Player nameAlexander-Arnold
- 5PinnockSubstituted forM Jorgensenat 43'minutes
- 15OnyekaBooked at 44minsSubstituted forBaptisteat 68'minutes
- 6NørgaardSubstituted forWissaat 78'minutes
- 22M Jorgensen
- 4van Dijk
- 26RobertsonBooked at 70mins
- 17JonesSubstituted forFirminoat 68'minutes
Match ends, Brentford 3, Liverpool 3.
Second Half ends, Brentford 3, Liverpool 3.
Corner, Liverpool. Conceded by Kristoffer Ajer.
Corner, Liverpool. Conceded by Rico Henry.
Fabinho (Liverpool) wins a free kick in the attacking half.
Foul by Ivan Toney (Brentford).
Offside, Brentford. Zanka tries a through ball, but Ivan Toney is caught offside.
Corner, Brentford. Conceded by Virgil van Dijk.
Foul by Fabinho (Liverpool).
Shandon Baptiste (Brentford) wins a free kick in the defensive half.
VAR Decision: Goal Brentford - Brentford 3-3 Liverpool (Yoane Wissa).
Goal! Brentford 3, Liverpool 3. Yoane Wissa (Brentford) left footed shot from the left side of the six yard box to the centre of the goal.Goal confirmed following VAR Review.
Attempt blocked. Yoane Wissa (Brentford) right footed shot from the centre of the box is blocked.
Corner, Liverpool. Conceded by Sergi Canós.
Corner, Liverpool. Conceded by Pontus Jansson.
Substitution, Brentford. Yoane Wissa replaces Christian Nørgaard.
Offside, Liverpool. Mohamed Salah tries a through ball, but Sadio Mané is caught offside.
Attempt missed. Mohamed Salah (Liverpool) left footed shot from the centre of the box is just a bit too high. Assisted by Sadio Mané with a through ball.
Offside, Liverpool. Trent Alexander-Arnold tries a through ball, but Mohamed Salah is caught offside.
Sadio Mané (Liverpool) wins a free kick in the defensive half.
- Our coverage of your Premier League club is bigger and better than ever before - follow your team and sign up for notifications in the BBC Sport app to make sure you never miss a moment