Michail Antonio scored twice and Declan Rice hit a superb solo goal as West Ham marched into the semi-finals of the Europa Conference League.
The Hammers fell a goal behind to Belgian side Gent but hit back for a thumping 4-1 win on the night and 5-2 on aggregate.
It means a continental semi-final for a second consecutive year for David Moyes’ side, having reached the same stage of the Europa League last term.
Moyes picked arguably his strongest available side, having managed to create a little breathing space between themselves and the Premier League’s bottom three.
But Gent should have scored with their first attack – Sven Kuma produced a dangerous cross which Gift Orban and Hugo Cuypers both missed in front of goal.
West Ham went close when Kurt Zouma headed over from a Vladimir Coufal free-kick, before there were lengthy delays when Coufal and Nayef Aguerd needed treatment on head injuries.
But it was Lucas Paqueta who looked like he had taken a bang on the head when his lazy pass in the centre was easily intercepted.
But West Ham equalised before half-time when Antonio powerfully met Jarrod Bowen’s free-kick at the near post.
Moyes was adamant West Ham should have had a penalty when Said Benrahma’s header struck the arm of Samoise but referee Orel Grinfeeld gave nothing.
There then came a truly chaotic spell of play amid a claim for handball, which saw Bowen’s shot saved by Davy Roef before Antonio hit the foot of the other post.
When play finally stopped Grinfeeld was called over to the pitchside monitor and decided, correctly, that Joseph Okumu had handled as he stumbled in the area.
Rice capped a magnificent display with a memorable goal after winning the ball in his own half. The England midfielder ran half the length of the field, evading two challenges before slotting the ball past Roef.
Antonio completed the scoring with another spectacular strike after he was sent through by Paqueta to book a semi-final next month against Dutch side AZ Alkmaar.