Newcastle started slowly, and were punished after only five minutes. Henri Saivet, making his first appearance of the season, gave the ball away cheaply in the midfield. Marko Arnautovic eased his way through the Newcastle defence and fired home. 1-0.
A disastrous start for Saivet, but it got much better for the Senegal international. He took a free-kick, and curled it around the wall and into the bottom left corner of the goal. A fantastic moment for him. 1-1.
After that, The Magpies really started to get themselves going. Matt Ritchie did very well to play in DeAndre Yedlin down the right, and the American picked out Dwight Gayle in the centre, but he smacked the bar. So unlucky.
West Ham were still dangerous at the other end. Aaron Cresswell's cross was headed over the bar by Michail Antonio, before Arthur Masuaku had his 25-yard drive well saved by Rob Elliot.
Still though, Newcastle looked the more likely to take the lead. Gayle pulled the ball back to Ritchie on the right, and the Scot cut inside, but only to smash his shot against the far post! Newcastle should have been ahead.
They had another chance, and again it fell to Gayle. Ritchie was involved in absolutely everything, he picked out Gayle this time, who should have done better with his shot from the edge of the penalty area.
The home side come out at the start of the second half and looked full of intent. Marko Arnautović was easily their best player, and after holding off three challenges on the right, he cut inside and curled an effort inches wide of the far post.
Newcastle made him pay. Christian Atsu was absolutely brilliant down the left flank, and he did so well to find the arriving Mo Diame, who slotted home his first Premier League goal for The Magpies!
West Ham hit back almost immediately, and they won a penalty, courtesy of Antonio. Ciaran Clark made the challenge, which looked to be outside the box, and the spot-kick was awarded. The Ghanian André Ayew stepped up and had his penalty saved by Rob Elliot!
The Hammers pushed and pushed, but we're caught out on the break. Yedlin showed unbelievable pace to pressure the defence, and that allowed Newcastle to counter. Christian Atsu found Joselu, who returned the favour, and the little winger buried the ball home! 3-1!
David Moyes introduced Andy Carroll against his former club, and he repaid his manager's faith straight away. The big man's header was parried by Elliot, and then the man who missed the penalty, Ayew, was there to finish. 3-2.
The game was totally end-to-end by this point. Ritchie looked to reinstate the two-goal lead with another left-footed strike, but it went wide.
West Ham went for the long-ball approach in the dying embers of the game. Carroll won a header, and knocked it down to Pedro Obiang, but the Spanish midfielder blasted over.
It was all hands to the pump for Rafa Benitez's men, as they were forced to deal with cross after cross. Joselu did very well to clear his lines with five minutes left, and Yedlin, who was outstanding today, did the game before Carroll could score.
Newcastle United won a match for the first time in two months, and boy did they enjoy it. Absolutely brilliant.