FC Barcelona will face Juventus, Olympiakos and Sporting Lisbon in Group D of the 2017-18 Champions League after the draw took place in Monaco on Thursday.
Barça will meet a Juventus side who knocked them out in the competition last season at the quarter-final stage, 3-0 on aggregate.
New coach Ernesto Valverde, meanwhile, will come up against Olympiakos, the Greek side who he has previously coached.
Finally, Sporting will see Barca face former player Jeremy Mathieu, who joined the Portuguese club on a free transfer this summer.
A Benfica, Manchester United, Basel, CSKA
B Bayern, PSG, Anderlecht, Celtic
C Chelsea, Atletico, Roma, Qarabag
D Juventus, Barcelona, Olympiakos, Sporting
E Spartak, Sevilla, Liverpool, Maribor
F Shakhtar, Manchester City, Napoli, Feyenoord
G Monaco, Porto, Besiktas, RB Leipzig
H Real Madrid, Dortmund, Spurs, APOEL