Defending champions Real Madrid will face Borussia Dortmund and Tottenham in a difficult group following the draw ceremony in Monaco on Thursday.
Arch rivals Barcelona didn’t get an easy pass, either, as they will face the runners up Juventus, Olympiakos and Sporting CP in Group D.
On the other hand, English teams received slightly easier draws, with Chelsea's matchup with Atletico Madrid among the more challenging matchups, while Liverpool will face Sevilla.
Manchester United will face Benfica, FC Basel and CSKA Moscow in Group A, while Manchester City get Shakhtar Donetsk, Napoli and Feyenoord in Group F.
Teams were drawn into eight groups of four. Clubs from the same national association -- as well as Russian and Ukrainian clubs -- could not be drawn together. The first group games will be played on Sept. 12-13.
Groups are as follow:
Group A: Benfica, Manchester United, FC Basel, CSKA Moscow.
Group B: Bayern Munich, Paris Saint-Germain, Anderlecht, Celtic
Group C: Chelsea, Atletico Madrid, Roma, FK Qarabag
Group D: Juventus, Barcelona, Olympiakos, Sporting CP
Group E: Spartak Moscow, Sevilla, Liverpool, NK Maribor
Group F: Shakhtar Donetsk, Manchester City, Napoli, Feyenoord
Group G: Monaco, FC Porto, Besiktas, RB Leipzig