Manchester United will play French side St Etienne in the last 32 of the Europa League.
United qualified as Group A runners-up and were paired with Christophe Galtier's team, who beat Anderlecht in their final Group C game to pip the Belgian outfit to top spot.
Tottenham were handed the short trip to Belgium to face Group H runners-up Gent, who qualified by winning their final match against Konyaspor.
The full draw
Athletic Bilbao v APOEL Nicosia
Legia Warsaw v Ajax Amsterdam
Anderlecht v Zenit St Petersburg
Astra v Genk
Manchester United v St Etienne
Villarreal v AS Roma
Ludogorets v Copenhagen
Celta Vigo v Shakhtar Donetsk
Olympiakos v Osmanlispor
Gent v Tottenham Hotspur
Rostov v Sparta Prague
Krasnodar v Fenerbahce
Borussia Moenchengladbach v Fiorentina
AZ Alkmaar v Olympique Lyonnais
Hapoel Beer Sheva v Besiktas
PAOK Salonika v Schalke 04