Michail Antonio and Pablo Fornals scored a goal at the end of each half as West Ham finished their pre-season preparations with a fifth straight victory by beating Italian side Atalanta at a London Stadium close to capacity for the first time in 18 months.
David Moyes' men begin their Premier League campaign at Newcastle next Sunday and will be full of confidence after a solid pre-season.
Antonio followed up his brace in the Hammers' 6-2 win at Celtic a fortnight ago with his third goal in three games, a volley in first-half stoppage time, as West Ham's supporters returned en masse for the first time since beating Southampton in February 2020, before the pandemic.