Match ends, Burnley 3, Everton 2.
Maxwel Cornet scored a late winner to earn Burnley a vital win over fellow strugglers Everton in their bid to remain in the Premier League.
The Ivorian capitalised upon two poor errors by Jordan Pickford and Ben Godfrey in the 85th minute to earn Sean Dyche's side only their fourth league win of the season.
It lifted them to within one point of safety behind Frank Lampard's fourth-bottom side.
In an entertaining and feisty encounter, the hosts took a 12th-minute lead when an unmarked Nathan Collins scored at the back post from a corner.
But the advantage did not last long as Richarlison stroked home the first of two penalties in the 18th minute when Ashley Westwood was adjudged to have tripped Anthony Gordon.
His second came four minutes before half-time and was tinged with controversy.
Despite Vitaliy Mykolenko being tripped by Aaron Lennon, referee Mike Dean did not think it amounted to a spot-kick, until he was advised by the video assistant referee to review it on the monitor and then overturned his decision.
The home support showed their disgust with that call, but their mood improved after the break when a great burst by Charlie Taylor led to him crossing for Jay Rodriguez's equaliser in the 57th minute.
And although Everton created the better chances as the second half wore on, Cornet's seventh goal of the season could not have been more crucial as it sent the home fans wild.
By contrast, the Everton players and boss Lampard left the field dejected, with their 68-year stay in the top flight under serious pressure.
Devastating blow to Everton's survival hopes
The victory was as morale-boosting for Burnley as it was devastating for Everton, who have earned only two wins from nine league games since Lampard replaced Rafael Benitez in January.
With wet and blustery conditions, this had all the ingredients for a relegation scrap, something Burnley have had more experience of in recent years compared to the visitors.
But Everton matched their opponents for much of the game, and were on top for most of the second half as they sought to earn a success that would boost their own survival hopes.
Richarlison almost had a hat-trick when his overhead kick was saved by Nick Pope.
Dominic Calvert-Lewin then headed over, while Gordon had a great opportunity blocked by James Tarkowski when clean through.
However, as had been the case for much of the season, Everton were undone by individual errors as their wretched away form continued.
Pickford mis-kicked a clearance out of play with his right foot, which led to the throw-in from which Burnley got their winner. It was made worse when defender Godfrey also sliced a clearance from Matej Vydra's cross, allowing Cornet to finish.
Everton now face a daunting task to stay in the league - and relegation would cause huge problems for a team that has registered heavy losses over the past three years.
Cornet hands Clarets a lifeline
Burnley's stay in the Premier League has been less established than their opponents, but they showed the grit and determination needed to stay up.
In both halves they started well and caused all sorts of problems from set-pieces, scoring for the first time in five games through Collins' early goal.
They might have had cause to complain about both penalties, which the home fans certainly felt were soft. The second, via VAR, saw them vent their frustrations at referee Dean.
But Rodriguez's goal was crucial in re-affirming their status in the game, and they defended well to deny Everton another.
The fact they were gifted the winner will matter little to Dyche or Burnley's support, with fireworks being let off outside the stadium in celebration at the end.
They also know they have a run-in which appears more favourable than that faced by Everton.
- 14RobertsSubstituted forLowtonat 72'minutesBooked at 76mins
- 17LennonSubstituted forMcNeilat 84'minutes
- 8BrownhillBooked at 10mins
- 9WeghorstSubstituted forVydraat 80'minutes
- 22GodfreyBooked at 54mins
- 4HolgateBooked at 3minsSubstituted forRondónat 87'minutes
- 24GordonSubstituted forGrayat 72'minutes
- 34El Ghazi
- Mike Dean
- Shots on Target
Second Half ends, Burnley 3, Everton 2.
Offside, Burnley. James Tarkowski tries a through ball, but Jay Rodriguez is caught offside.
Attempt missed. Salomón Rondón (Everton) right footed shot from the centre of the box is close, but misses to the left. Assisted by Dominic Calvert-Lewin.
Josh Brownhill (Burnley) wins a free kick in the attacking half.
Foul by Salomón Rondón (Everton).
Matej Vydra (Burnley) wins a free kick in the defensive half.
Foul by Abdoulaye Doucouré (Everton).
Attempt missed. Matej Vydra (Burnley) right footed shot from the centre of the box misses to the right.
Attempt blocked. Dwight McNeil (Burnley) left footed shot from the right side of the box is blocked. Assisted by Jay Rodriguez.
Substitution, Everton. Salomón Rondón replaces Mason Holgate.
Goal! Burnley 3, Everton 2. Maxwel Cornet (Burnley) left footed shot from the centre of the box to the high centre of the goal. Assisted by Matej Vydra.
Attempt blocked. Jonjoe Kenny (Everton) right footed shot from outside the box is blocked. Assisted by Richarlison.
Substitution, Burnley. Dwight McNeil replaces Aaron Lennon.
Corner, Everton. Conceded by Charlie Taylor.
Attempt blocked. Demarai Gray (Everton) right footed shot from the right side of the box is blocked.
Substitution, Burnley. Matej Vydra replaces Wout Weghorst.
Corner, Burnley. Conceded by Jordan Pickford.
Attempt saved. Maxwel Cornet (Burnley) right footed shot from the left side of the box is saved in the top centre of the goal. Assisted by Wout Weghorst.
Aaron Lennon (Burnley) wins a free kick on the right wing.
- 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