West Ham United 3 - 1 Everton
Oumar Niasse gave Everton hope at 2-1 but the Blues were eventually beaten for the first time by a David Moyes team
Everton closed out a season to forget with a deserved 3-1 defeat to their former boss and West Ham at the London Stadium.
Two goals from Mario Lanzini and a thumping finish from Marco Arnautovic handed David Moyes his first win over the Blues while Sam Allardyce, barracked off and on by both sets of fans during the game, might have overseen his last match as Everton manager.
With Wayne Rooney injured and Allardyce seeking to match the Hammers' formation, he opted for a five-man back line and two up front with Ramiro Funes Mori and Oumar Niasse returning to the lineup.
Tom Davies was preferred to Davy Klaassen in central midfield but the Dutchman would play the second 45 minutes after Allardyce reshuffled his team after going a goal down.
The Hammers had started the game in confident fashion, playing much the better football and they almost went ahead when Jordan Pickford made an excellent save to dent Mark Noble.
Joao Mario then missed by barely an inch with a low shot before Niasse was presented with a gift to try and open the scoring just after the half-hour mark. Seizing on an error by Angelo Ogbonna, he found himself with just the goalkeeper to beat but he was foiled by Adrian.
Niasse tested Adrian with another effort from further out as Everton periodically threatened but the home side got their reward for largely controlling the contest six minutes before the interval.
A loose ball skidded through Everton's back line and Lanzini latched onto it, driving into the box to slide his shot past Pickford into the corner of the goal.
Little changed after the break despite the introduction of Klaassen and then Theo Walcott for a visibly angry Cenk Tosun and West Ham doubled their lead in the 63rd minute.
Arnautovic rolled Michael Keane to open up space for a dipping shot that rocketed past Pickford from 20-plus yards.
Niasse came close to pulling a goal back in the 73rd minute when he rifled a shot from the angle that Adrian pushed into the post but the Senegalese striker's hard work and opportunism paid off a minute later.
He pulled a Phil Jagielka header down with his back to goal and turned smartly to smack the ball home from close range.
But any hope of a comeback by the Blues was put to bed when Lanzini curled a shot into the top corner via Pickford's glove to make it 3-1 with eight minutes to go.
Walcott had the ball in the net but had been correctly flagged offside while Adrian made a double save in the closing stages to deny the winger with his legs before batting away Niasse's follow-up shot.
Leicester City's defeat at Tottenham in a wild encounter at Wembley that finished 5-4 ensured that, despite losing, Everton finished in eighth place, five points behind Burnley and a massive 51 off champions Manchester City.
Full details: ToffeeWeb match page