Marko Arnautovic netted a magnificent individual strike deep into stoppage time to salvage a 1-1 Premier League draw for Stoke City at West Ham.
Arnautovic, restored to Stoke’s starting XI but without a league goal since May last year, had the final word at Upton Park having twice seen efforts ruled out for offside.
A seventh-minute free-kick from Aaron Cresswell looked to have earned West Ham back-to-back home wins for the first time since December.
But substitute Mame Biram Diouf struck the post in an impressive late rally from the visitors before Arnautovic ensured further misery for home manager Sam Allardyce, who this week cast doubt on his long-term future at Upton Park.
West Ham midfielder Cheikhou Kouyate blasted over on the angle and as Stoke made a sluggish start that was soon punished.
Glenn Whelan bundled Enner Valencia – back in the West Ham side following a toe injury – to the floor 25 yards from goal, leaving Cresswell to step up and whip a superb strike beyond Asmir Begovic and into the top corner.
Kouyate sauntered past a pitiful challenge from Steven N’Zonzi to test the Bosnia-Herzegovina goalkeeper in the 16th minute, although Winston Reid was forced into a last-ditch block to deny Jonathan Walters as Stoke belatedly stirred.
Mark Hughes’ team were carrying the greater attacking threat by the time Walters cut in from the left to ripple the side netting and home goalkeeper Adrian turned a Moses snapshot behind six minutes before the break.
But the on-loan Chelsea forward endured an early end to his afternoon, injuring his left knee when he sent another shot narrowly wide in the closing moments of the half.
That brought Diouf into the action and, early in the second half, Stoke full-back Erik Pieters came on as Marc Wilson hobbled from the field.
The next enforced change was for West Ham, with Carlton Cole replacing the injured Diafra Sakho before the hour, and the stoppages went a long way to explaining an uneventful and disjointed start to the second period.
Charlie Adam dragged wide from the edge of the area under pressure from James Collins before the midfielder – who scored a stunning goal from the halfway line in last weekend’s loss to Chelsea – picked out Arnautovic to slot home a tidy finish from an offside position.
West Ham’s sharpness in attack diminished in Sakho’s absence, but Kouyate found space in the box after 71 minutes and forced Begovic to beat a low strike out of the bottom corner.
At the other end, Adrian found himself comfortably beaten when he gratefully saw Diouf’s well-directed effort cannon back off the upright.
Arnautovic cut a furious figure when the assistant’s flag curtailed his celebrations for converting substitute Stephen Ireland’s pass, but his joy was unchecked in the fifth and final minute of added time.
The Austria international drove purposefully at a tiring West Ham defence and lashed into the bottom left-hand corner, leaving the teams locked together on 43 points.