Ben Johnson scored early for the visitors only to see Ollie Watkins equalise but the Hammers reclaimed the lead before half-time through Declan Rice. Villa's task was made all the harder early in the second half when defender Ezri Konsa was dismissed for denying a goalscoring opportunity. Late goals from Pablo Fornals and Jarrod Bowen sealed the three points for David Moyes' side.
The victory lifts David Moyes' Hammers to 20 points after 10 games -- level on points with third-placed Manchester City. West Ham drew first blood in the seventh minute when Rice sprayed a pass out to the right flank for Johnson, who cut inside onto his left foot and curled a low shot into the far corner of the net.
Watkins levelled things up in the 34th minute. But Villa's delight was shortlived as Rice restored the visitors' lead with a long-range shot.