Burnley's survival hopes took a huge blow as Ivan Toney's two late goals for Brentford settled their Premier League match and took the Bees closer to securing safety.
The Clarets looked set to move out of the bottom three until Toney headed in Christian Eriksen's lovely cross with four minutes to go.
Toney then won a penalty deep into injury time, with Nathan Collins sent off for bringing him down, and he slammed in the spot-kick to seal the win.
Burnley remain a point behind 17th-placed Everton, who have two games in hand, while Brentford are now nine points clear of the Clarets.