Southampton have been drawn against Danish champions FC Midtjylland in the final play-off round of the Europa League.
The Saints are enjoying their first European campaign for 12 years and reached this stage of the competition with a 5-0 aggregate victory over Dutch side Vitesse Arnhem, Graziano Pelle and Sadio Mane scoring in a 2-0 second-leg win in Holland on Thursday night.
FC Midtjylland dropped into the Europa League following their Champions League defeat on the away goal rule to Cypriot side APOEL.
The tie represents new ground for Southampton as the Saints have never previously met Danish opposition in their eight European campaigns.
Ronald Koeman's side will have home advantage in the first leg at St Mary's on August 20 with the return in Denmark a week later, and the winner will go through to the group stages which start in September.
West Ham's Romanian conquerors Astra Giurgiu, who eliminated Inverness Caledonian Thistle in the previous round, were drawn against Dutch side AZ. Kazakh side Kairat Almaty, who knocked out Aberdeen in the third qualifying round, will play Bordeaux of France.