West Ham’s top-four hopes suffered a huge dent as they fell to a 2-0 loss at Brentford.
Second-half goals from Bryan Mbeumo and Ivan Toney saw Thomas Frank’s side climb to 13th in the table, 12 points clear of the bottom three, to all but confirm their Premier League safety.
Mbeumo fired in from Toney’s pass shortly after half-time, before turning provider for his team-mate as Toney headed in after 64 minutes.
The victory means that the Bees now climb to 13th and secure a 12-point gap to the drop zone.
“I’m very proud. It was a top performance against a very good side who are in the quarter-final of the Europa League and fighting for a Champions League spot,” said manager Frank.
“It was close to a complete performance. The way we did it shows how far we’ve come. It’s a combination of a top performance and a good win.”
He added: “Of course I looked at the table, but I want to focus on the next game.”
The visitors managed only one shot on target – a first-half Tomas Soucek header – in a subdued display, while Kurt Zouma was forced off early with an ankle problem ahead of Thursday’s Europa League quarter-final second leg in Lyon.
The Hammers remain sixth, with six points adrift of fourth-placed Tottenham in the race for Champions League football, having also played a game more than Spurs.