Callum Wilson delivered a decisive stoppage-time strike to hand West Ham a dramatic 2-1 win over Everton, a result that helped the Hammers maintain their position just above the Premier League relegation zone.
West Ham had taken the lead through Tomas Soucek, who rose highest to meet a delivery and put his side in control.
However, the contest swung late on when Kiernan Dewsbury-Hall found an equaliser, briefly shifting the momentum in the survival fight and momentarily pushing West Ham into the bottom three while Spurs were edging ahead elsewhere.
The tension at the London Stadium intensified as Everton pushed for a result, but Wilson, who has a strong scoring record against the Toffees, made the difference once again.
Introduced from the bench, he struck in the dying moments of added time, sealing all three points for the hosts just when a draw looked certain.
The defeat was especially painful for David Moyes, returning to the London Stadium for the first time since his departure two summers ago.
The match also marked his 750th Premier League game as a manager, though the milestone was overshadowed by Everton’s late collapse.
While West Ham celebrated a crucial survival boost, Everton were left frustrated, and Moyes saw his side’s hopes of pushing toward European qualification take a significant setback.