Gundogan's goal was the German's third in the Premier League this season
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 out 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.
Weather main threat to City winThe second half was delayed by almost 10 minutes so snow could be cleared from the pitch
Guardiola should offer special thanks to head groundsman Lee Jackson and his team for this latest victory.
As half-time approached with heavy snow falling on a pitch already covered in it, there was a real fear the game might not reach its conclusion.
Yet Jackson and his colleagues got to work and with the aid of a half-time interval extended by referee Michael Oliver by five minutes, and the surface was clear again when the game restarted, by which time the snow had stopped.
Jackson's reward was an effective home display, even if it was some way short of show-stopper.
West Ham keeper Lucasz Fabianski denied Gundogan a second and Bernardo Silva's excellent chipped finish counted for nothing thanks to an offside flag.
And Ederson, whose only significant save was turning away a fierce Declan Rice shot, was denied his personal milestone with a goal out of virtually nothing from Lanzini, when West Ham had no time to even think about an equaliser.
Despite losing 22 out of 25 previous away games against the defending champions, West Ham can rarely have gone into such a fixture in more optimistic mood.
Yet they never really got going.
Fabianski was booed by the City fans inside the opening 10 minutes for apparent time-wasting and the experienced Poland goalkeeper was soon earning the wrath of David Moyes for a fluffed clearance that would have resulted in a goal had Mahrez not been offside when Raheem Sterling's block landed at his feet.
Arthur Masuaku's selection ahead of Jarrod Bowen was supposed to provide more protection down the West Ham left flank but City's array of attacking talent just found spaces elsewhere.
Ben Johnson's goalline clearance to deny Mahrez, who also hit the outside of the post, before half-time was followed up by Ryan Cresswell bravely sliding in to turn Gabriel Jesus' goal-bound effort away for a corner. It was effectively Cresswell's final contribution as he continued into the post with such force he needed to be replaced by Vladimir Coufal after hurting his back.
It made no fundamental difference to the flow of the game and West Ham will be thankful for the failings of others that their position in the table remains as it was.
Manchester City's next Premier League game is at Aston Villa on Wednesday, 1 December (20:15 GMT). West Ham entertain Brighton at London Stadium on the same day (19:30 GMT).
- Follow live text coverage of Sunday's Premier League actionGo to the Man City pageGo to the West Ham page
Player of the match
with an average of 6.69
- Man CityManchester CityManchester CityWest HamWest Ham UnitedWest Ham United
Manchester CityAvgSquad number8Player nameGündoganAverage rating
Squad number20Player nameBernardo SilvaAverage rating
Squad number25Player nameFernandinhoAverage rating
Squad number27Player nameJoão CanceloAverage rating
Squad number26Player nameMahrezAverage rating
Squad number9Player nameGabriel JesusAverage rating
Squad number16Player nameRodriAverage rating
Squad number3Player nameRúben DiasAverage rating
Squad number2Player nameWalkerAverage rating
Squad number31Player nameEdersonAverage rating
Squad number14Player nameLaporteAverage rating
Squad number7Player nameSterlingAverage rating
West Ham UnitedAvgSquad number41Player nameRiceAverage rating
Squad number10Player nameLanziniAverage rating
Squad number1Player nameFabianskiAverage rating
Squad number9Player nameAntonioAverage rating
Squad number22Player nameBenrahmaAverage rating
Squad number31Player nameJohnsonAverage rating
Squad number4Player nameZoumaAverage rating
Squad number15Player nameDawsonAverage rating
Squad number3Player nameCresswellAverage rating
Squad number20Player nameBowenAverage rating
Squad number8Player nameFornalsAverage rating
Squad number28Player nameSoucekAverage rating
Squad number5Player nameCoufalAverage rating
Squad number26Player nameMasuakuAverage rating
- Line-upsMatch StatsLive Text
31Ederson2Walker3Rúben Dias14Laporte27Cancelo8Gündogan16Rodri20Bernardo Silva9Gabriel Jesus26Mahrez7Sterling
- 31Ederson2Walker3Rúben Dias14LaporteBooked at 29mins27CanceloBooked at 61mins8Gündogan16Rodri20Bernardo Silva9Gabriel Jesus26Mahrez7SterlingSubstituted forFernandinhoat 87'minutes
- 1Fabianski31Johnson15Dawson4Zouma3CresswellSubstituted forCoufalat 61'minutes28Soucek41Rice8Fornals22BenrahmaSubstituted forLanziniat 59'minutes26MasuakuSubstituted forBowenat 74'minutes9Antonio
Referee:Michael OliverMatch StatsHome TeamMan CityAway TeamWest HamPossessionHome69%Away31%ShotsHome19Away5Shots on TargetHome9Away3CornersHome8Away4FoulsHome7Away6Live TextPost update
Match ends, Manchester City 2, West Ham United 1.
Second Half ends, Manchester City 2, West Ham United 1.
Goal! Manchester City 2, West Ham United 1. Manuel Lanzini (West Ham United) right footed shot from outside the box to the top left corner.
Attempt missed. Tomas Soucek (West Ham United) header from the right side of the box misses to the right. Assisted by Vladimir Coufal.
Foul by Gabriel Jesus (Manchester City).
Jarrod Bowen (West Ham United) wins a free kick on the right wing.
Offside, Manchester City. Fernandinho tries a through ball, but Bernardo Silva is caught offside.
Goal! Manchester City 2, West Ham United 0. Fernandinho (Manchester City) right footed shot from the centre of the box to the bottom left corner. Assisted by Ilkay Gündogan.
Corner, Manchester City. Conceded by Ben Johnson.
Substitution, Manchester City. Fernandinho replaces Raheem Sterling.
Corner, West Ham United. Conceded by João Cancelo.
Kyle Walker (Manchester City) wins a free kick in the defensive half.
Foul by Manuel Lanzini (West Ham United).
Attempt blocked. Rúben Dias (Manchester City) header from the centre of the box is blocked. Assisted by Riyad Mahrez with a cross.
Corner, Manchester City. Conceded by Pablo Fornals.
Attempt saved. Ilkay Gündogan (Manchester City) left footed shot from the left side of the box is saved in the centre of the goal. Assisted by Raheem Sterling.
Attempt saved. Declan Rice (West Ham United) right footed shot from outside the box is saved in the centre of the goal. Assisted by Pablo Fornals.
Foul by Rúben Dias (Manchester City).
Michail Antonio (West Ham United) wins a free kick on the left wing.
João Cancelo (Manchester City) wins a free kick in the defensive half.
Page 1 of 5rewindpreviousNavigate to the next pagenextNavigate to the last pageforward
- Our coverage of your Premier League club is bigger and better than ever before - here's everything you need to know to make sure you never miss a moment