West Ham ended a run of five straight Barclays Premier League away defeats as Jack Collison's strike secured them all three points in a 1-0 win at Stoke.
In a first half of few chances, Hammers defender James Collins' header clipped the bar before Collison netted in stoppage time, finishing on the turn after collecting a through-ball from his fellow substitute Ricardo Vaz Te.
It proved to be the winner, with Potters substitute Charlie Adam going close in added time at the end of the game by cracking a volley against the bar. The hosts' protests that Guy Demel had handled in the area were then waved away by referee Jonathan Moss.
The result - only the second home league loss for Stoke this season - saw West Ham move up to 12th, level on points with the Staffordshire side, who are now 11th. The Hammers made a less than ideal start to the match, having to make two substitutions within the opening 11 minutes.
Matt Taylor took a boot in the face as Peter Crouch attempted an overhead kick and was down for some time before heading down the tunnel in the 10th minute, with Collison coming on in his place. Moments later Joe Cole was also departing the field having picked up an injury, the midfielder being replaced by Vaz Te.
The contest was struggling to spark into life, with Andy Carroll seeing a shot deflected and the ball cleared away, and Crouch sending a tame effort bouncing through to Jussi Jaaskelainen at the other end.
West Ham looked to be responding well following their early disruption and they went close in the 25th minute as Collins looped a flicked header on to the bar. Collison then unleashed a shot from outside the box straight at Asmir Begovic, before Carroll leapt in front of goal, only to direct his header well wide.
With seconds of the first half remaining, West Ham managed to do break the deadlock. Having attempted to play a one-two with Carroll and had the ball come back to him as the England striker was tackled by Ryan Shawcross, Vaz Te slipped a pass in for Collison, who turned and drilled a shot beyond Begovic.
Following the restart Matt Jarvis collected another Vaz Te through-ball and saw his shot saved by the legs of Begovic. Crouch then brought a stop out of Jaaskelainen with a low attempt.
Vaz Te tried to carve out the space to shoot in the box but was unable to do so, and Stoke then almost snatched a dramatic equaliser as Adam rifled a volley against the goalframe in stoppage time.