Dominic Calvert-Lewin scored a dramatic 85th-minute winner as Everton secured their Premier League status with a sensational comeback victory against Crystal Palace.
Richarlison's 16th-minute free-kick clipped the bar as Everton started on the front foot.
Palace took the lead with on 21 minutes with Jean-Philippe Mateta's header from an Eberechi Eze free-kick before Jordan Ayew bundled home their second goal 15 minutes later.
Everton needed a response and Michael Keane provided it with a thumping finish early in the second half to reduce the deficit.
Richarlison's deflected shot hauled the Toffees level with a quarter of an hour left and, in an incredible finale, Calvert-Lewin sealed victory with a header from Demarai Gray's free-kick.
Victory moves Everton four points clear of third-bottom Leeds United, with one match remaining.
Palace drop to 13th spot with 45 points.
See: Everton report | Crystal Palace report
Next fixtures
Everton: 22 May v Arsenal (A)
Crystal Palace 22 May v Man Utd (H)
Match officials
Referee: Anthony Taylor. Assistants: Gary Beswick, Adam Nunn. Fourth official: Kevin Friend. VAR: Mike Dean. Assistant VAR: Eddie Smart.
WHO'S GOING TO BE YOUR
MAN OF THE MATCH?
Vote at Full-time