Igor Thiago’s 29th minute penalty gave Brentford a lead which they held on to until the 70th minute.
However, the game completely turned on its head in the closing stages.
In-form Danny Welbeck started the comeback with a fine close range finish from Yankuba Minteh’s superb cross.
The winner was scored on the 84th minute by substitute Jack Hinshelwood – who had been out of action, for more than two months, with an ankle injury.
The 20-year-old Albion academy graduate’s half volley wasn’t the cleanest of strikes but it was enough to beat Caoimhin Kelleher.
That wasn’t to be the last of the drama, though, as Brentford were given an injury-time penalty. Maxim De Cuyper was the man penalised and, despite Albion protests and a VAR check, the spot-kick was confirmed.
Up stepped Thiago for his second penalty of the game but, this time, Verbruggen was equal to it – sending the home fans wild in celebration.
The Seagulls held on to the three points, extending their unbeaten home run to ten games. The result moved Albion up to fifth in the live league table.
Scroll down and click through to see our player ratings for the Brighton players:

1. Brighton 2-1 Brentford
Jack Hinshelwood came off the bench to mark his return from injury with the winning goal for Brighton against Brentford. Photo: Warren Little / Getty Images

2. Bart Verbruggen - 9
One of his best moments in a Brighton shirt as he saved a last-minute penalty. One to savour for the Dutchman, who was the first man everyone ran to celebrate with post-match. Photo: Mike Hewitt/Getty Images

3. Mats Wieffer - 6
Close to opening the scoring with well-hit strike from Minteh’s cut back. Not his best day in a defensive sense – guilty of making unnecessary fouls which threatened to stifle the hosts’ momentum. Got forward at key moments and made a nuisance of himself before Welbeck chance at 0-1. Photo: Mike Hewitt/Getty Images

4. Olivier Boscagli - 5
Not how he would have wanted his Premier League debut to go. Struggled in the first half. Got booked and was replaced at half-time. Photo: Mike Hewitt/Getty Images
