Premier League champions Manchester City have been drawn to face Paris St-Germain, RB Leipzig and Club Bruges in the Champions League group stage.
Holders Chelsea come up against Serie A giants Juventus, Russian club Zenit St Petersburg and Swedish side Malmo.
Manchester United face Villarreal, who beat them in last season’s Europa League final, as well as Italian club Atalanta and Swiss side Young Boys.
Liverpool are in a tough group with Atletico Madrid, Porto and AC Milan.
Group stage draw in full:
Group A
Manchester City
PSG
RB Leipzig
Club Bruges
Group B
Atletico Madrid
Liverpool
Porto
AC Milan
Group C
Sporting Lisbon
Borussia Dortmund
Ajax
Besiktas
Group D
Inter Milan
Real Madrid
Shakhtar Donetsk
Sheriff Tiraspol
Group E
Bayern Munich
Barcelona
Benfica
Dynamo Kiev
Group F
Villarreal
Manchester United
Atalanta
Young Boys
Group G
Lille
Sevilla
FC Salzburg
Wolfsburg
Group H
Chelsea
Juventus
Zenit St Petersburg
Malmo