Andriy Yarmolenko's last-gasp winner settled an eventful London derby with Chelsea and delivered a huge boost to West Ham United's hopes of avoiding relegation.
In a topsy-turvy game, which saw West Ham infuriated when Tomas Soucek's first-half goal was ruled out by VAR, substitute Yarmolenko made the decisive contribution when the finished off a superb counter attack with a classic left-foot finish.
It looked like both sides would have to settle for a point but that late twist not only provides a huge morale lift to David Moyes' side, putting them three points clear of the relegation places, but also completed a good 24 hours for Manchester United in the race for Champions League places after their win at Brighton and third-placed Leicester City's loss at Everton.
Moyes was angry when Soucek saw a first-half goal ruled out because Michail Antonio was adjudged to be offside and in Chelsea keeper Kepa Arrizabalaga's line of vision.
Chelsea then took the lead through Willian's penalty but battling West Ham levelled through Soucek's header right on the stroke of half-time.
Man-of-the-match Antonio bundled West Ham in front six minutes after the interval but this eventful affair looked to be heading for a draw when Willian's superb free-kick with 18 minutes left drew Chelsea level.
And yet, with injury-time looming, West Ham broke and the tireless Antonio set up Yarmolenko for a crisp finish that gave Moyes' men what could be a priceless three points.
Antonio sets the tone
West Ham manager Moyes needed a big performance to turn around their fortunes in an increasingly fraught battle to avoid the drop.
And when he was needed, Antonio stepped up with a performance of determination and quality as he led from the front to see off the challenge of Chelsea as they chase a place in the top four.
Antonio was a potent mix of skill and power, a central figure as he was controversially adjudged to be in Chelsea keeper Arrizabalaga's eyeline when West Ham's first goal was disallowed, then scoring their equaliser before leading the counter that led to Yarmolenko's winner.
West Ham needed a reaction after losing at home to Wolves and away to Spurs since the Premier League kicked into action again - and there will be no better tonic for Moyes and his players than a win over their arch-rivals from west London.
With a visit to Newcastle United and a home game against Burnley on the horizon, with both teams in form, it was vital West Ham gained full reward and Antonio was the driving force behind this vital victory.
More to follow.