Cristiano Ronaldo and Lionel Messi are set to face off again as Barcelona meet Juventus with Manchester United also set to play Paris Saint-Germain and RB Leipzig in the Champions League group stage.
Ole Gunnar Solskjaer's side have been handed a tough draw on their return to the competition, with Turkey's Istanbul Basaksehir the final side in their group.
Liverpool also face a difficult task, with Dutch champions Ajax and last season's quarter-finalists Atalanta joining them in Group D along with Midtjylland.
Pep Guardiola's Manchester City, beaten in last season's quarter-finals, have been drawn against Porto, Olympiakos and Marseille.
While Chelsea will play Europa League winners Sevilla, Russian side Krasnodor and Rennes in Group E.
Elsewhere, Messi and Ronaldo are set to meet in a blockbuster tie as Barcelona play Juventus in Group G, while holders Bayern Munich play Atletico Madrid.
Group A: Bayern Munich, Atletico Madrid, RB Salzburg, Lokomotiv Moscow
Group B: Real Madrid, Shakhtar Donetsk, Inter Milan, Borussia Monchengladbach
Group C: FC Porto, Manchester City, Olympiakos, Marseille
Group D: Liverpool, Ajax, Atalanta, Midtylland
Group E: Sevilla, Chelsea, FC Krasnodar, Stade Rennes
Group F: Zenit, Borussia Dortmund, Lazio, Club Brugge
Group G: Juventus, Barcelona, Dynamo Kyiv, Ferencváros
Group H: PSG, Manchester United, RB Leipzig, Istanbul Basaksehir