Callum Wilson came off the bench to score in stoppage time as West Ham beat Everton 2-1 to stay out of the Premier League relegation zone.
On a topsy-turvy afternoon in the capital, Nuno Espirito Santo's side had appeared to be cruising to a huge three points thanks to Tomas Soucek's 51st-minute header, until late drama.
Firstly, as news of a Tottenham Hotspur goal at Wolves filtered around the London Stadium, Kiernan Dewsbury-Hall volleyed the visitors level with just two minutes to go, pushing the Hammers into the drop zone on goal difference.
But just as the board was raised to indicate there would be another eight minutes of injury time, up popped the ever-green Wilson to score after good work at the back post by Jarrod Bowen, a vital strike that saw West Ham again leapfrog their London rivals in the table.
There had been little indication of the climax we were in store for, though, after a cagey first period in the east London sunshine, only for Soucek's thumping near-post header from Bowen's inswinging corner to spark the game into life.
The home side had appeared to be doing a good job seeing the match out, only for that man Soucek to somehow deflect Thierno Barry's effort on to the bar, before Everton were denied what appeared a convincing call for an 84th-minute penalty when Mateus Fernandes appeared to scoop the ball away with his hand.
Video Assistant Referee Michael Salisbury deemed it accidental, but that close call seemed to cause doubt in the West Ham back line and minutes later Dewsbury-Hall's sweetly struck volley from James Tarkowski's clever headed knock down looked to be a knock-out blow for the hosts.
That was until Wilson used all his experience in the second minute of injury time to know exactly where Bowen's knock down would land as West Ham stayed two points clear of Spurs in the race to beat the drop, with now just four games left to play.