Match ends, Viborg FF 0, West Ham United 3.
West Ham put their poor Premier League form behind them to reach the group stage of the Europa Conference League.
The Hammers, who have lost their opening three domestic games, demolished Viborg 6-1 on aggregate in the play-off round.
Leading 3-1 from the first leg, David Moyes' side extended their lead on aggregate through Italy forward Gianluca Scamacca in Denmark.
Said Benrahma made it 2-0 on the night before Tomas Soucek added a third.
The Hammers will discover their group-stage opponents on Friday, with Moyes' side now facing six Europa Conference League games between 8 September and 3 November.
- Relive West Ham's game against Viborg
- Go straight to all the best West Ham content
- You can now get West Ham news notifications in the BBC Sport app - find out more
Hammers cruise into group stage
This was a welcome win for Moyes and his players, who are bottom of the Premier League table without a point or a goal.
They have lost to Manchester City, Nottingham Forest and Brighton but made easy work of seeing off Viborg, who are sixth in Denmark's top flight.
Scamacca struck at the near post from a cross for his second goal in West Ham colours since joining in a £30.5m deal from Sassuolo last month.
Algeria winger Benrahma raced onto Maxwel Cornet's forward pass to slot into the far corner to make it 2-0.
The Czech Republic midfielder Soucek struck from close range to seal an emphatic aggregate win for last season's Europa League semi-finalists.
- 17BondeSubstituted forZamburekat 60'minutes
- 14LeemansSubstituted forSøndergaardat 77'minutes
- 30SaidBooked at 58minsSubstituted forBergerat 77'minutes
- 11GrotSubstituted forJattaat 61'minutes
- 8LonwijkSubstituted forMortimerat 60'minutes
- 3CresswellBooked at 58minsSubstituted forZoumaat 82'minutes
- 28SoucekSubstituted forDownesat 68'minutes
- 10LanziniSubstituted forOko-Flexat 82'minutes
- 22BenrahmaSubstituted forCoventryat 68'minutes
- 7ScamaccaSubstituted forAntonioat 68'minutesBooked at 87mins
- Harald Lechner
- Shots on Target
Second Half ends, Viborg FF 0, West Ham United 3.
Pablo Fornals (West Ham United) wins a free kick on the left wing.
Foul by Jeppe Grønning (Viborg FF).
Offside, Viborg FF. Sofus Berger tries a through ball, but Alassana Jatta is caught offside.
Michail Antonio (West Ham United) is shown the yellow card for a bad foul.
Foul by Michail Antonio (West Ham United).
Nicolas Bürgy (Viborg FF) wins a free kick in the defensive half.
Attempt missed. Nils Mortimer (Viborg FF) header from the centre of the box misses to the right. Assisted by Sofus Berger with a cross.
Substitution, West Ham United. Armstrong Oko-Flex replaces Manuel Lanzini.
Substitution, West Ham United. Kurt Zouma replaces Aaron Cresswell.
Attempt missed. Jan Zamburek (Viborg FF) right footed shot from outside the box misses to the right. Assisted by Christian Sørensen.
Corner, Viborg FF. Conceded by Thilo Kehrer.
Attempt missed. Michail Antonio (West Ham United) right footed shot from outside the box is high and wide to the right. Assisted by Conor Coventry.
Substitution, Viborg FF. Mads Søndergaard replaces Clint Leemans.
Substitution, Viborg FF. Sofus Berger replaces Ibrahim Said.
Manuel Lanzini (West Ham United) wins a free kick in the attacking half.
Foul by Jeppe Grønning (Viborg FF).
Offside, West Ham United. Pablo Fornals tries a through ball, but Manuel Lanzini is caught offside.
Attempt missed. Ibrahim Said (Viborg FF) right footed shot from outside the box misses to the right. Assisted by Alassana Jatta.
- Our coverage of West Ham United is bigger and better than ever before - here's everything you need to know to make sure you never miss a moment
- Everything Hammers - go straight to all the best content
I hope Viborg have a great season...good club with superb fans.
Need to get out league form sorted out...Scamacca surely has to be our starting striker now.
Well done West Ham...onto the group stages of a European competition yet again.
Well done boys, now on to Villa ⚒️⚒️⚒️
Surely GS has got to start on Sunday, I'd be happy to see him and Antonio up front together. 3-2-1-2-2. COYI ⚒️⚒️
As always: 'Up the Hammers!'