Manchester City midfield pair Ilkay Gundogan and Fernandino were on target as Pep Guardiola’s Premier League superiority over West Ham continued.
City have now won 10 of 11 top-flight meetings with the Hammers under the Spaniard.
In a game played in a snow-storm before half-time, skipper Gundogan provided the decisive moment after 33 minutes when he turned home a deflected Riyad Mahrez effort at the far-post.
It was the Germany midfielder’s third goal of the season – and his second in four league games – and was followed up in the final minute by Fernandinho, who had only been introduced three minutes earlier to tie the game up.
The veteran Brazilian had not scored a Premier League goal since October 2018 but found the target from the edge of the box.
Manuel Lanzini pulled one back with the final kick of the game, which cost Ederson his 100th clean sheet in all competitions but did nothing to prevent City moving back into second spot, six points clear of the Hammers.
The Londoners remain fourth despite suffering successive Premier League defeats for the first time since April.
Man City boss Pep Guardiola, said: “The amount of chances we created, especially in the first half, in the conditions that both teams played in – it was a huge victory for us, for the effort of the players and the performance.
“We didn’t concede much. We defended the set-pieces really well and counter-attacks we controlled.
“We could maybe make another speed, another rhythm but weather conditions didn’t allow us to do it and it was a good performance from us.”