It will see Barcelona’s new summer signing, Robert Lewandowski, face his old team, where he scored 344 goals in 375 appearances, second most at the club behind Gerd Müller, including 50 goals in 46 games last season.
The two behemoths of European football have been drawn in Group C with fellow giants Inter Milan and Czech champions Viktoria Plzeň.
After a disappointing season last year — failing to qualify for the last 16 of the Champions League for the first time in 17 years — Barcelona are aiming to return to the final stage at the first time of asking.
Armed with a whole host of new signings, Barca face the task of qualifying even against German champions Bayern, 2020-21 Italian champions Inter Milan and reigning Czech champions Viktoria Plzeň.
Elsewhere, reigning Champions League winners Real Madrid have been drawn in Group F alongside RB Leipzig, Shakhtar Donetsk and Celtic.
Real won their 14th Champions League title in Paris last season, beating Liverpool 1-0.
Ukrainian side Shakhtar began its club season on Tuesday, as the Ukrainian Premier League restarted after Russia’s invasion of the country.
Also, Manchester City’s new striker, Erling Haaland, will travel to face his old club, Borussia Dortmund, in the group stage.
Haaland and City were drawn against Dortmund, Sevilla and Copenhagen, meaning after scoring 85 goals in 88 appearances in the yellow and black of the German club, he will face his former team sooner than he thought.
Last year’s beaten finalists Liverpool were pitted against Ajax, Napoli and Rangers.
The first round of group stage fixtures will take place on September 6 and 7.
Alongside the draw, UEFA — European football’s governing body — announced a series of individual awards given for personal achievements of the past year.
England manager Sarina Wiegman has been named UEFA Women’s Coach of the Year after guiding her side to Euro 2022 success.
Carlo Ancelotti was named UEFA Men’s Coach of the Year, after leading Real Madrid to the Spanish league title and its 14th Champions League crown; his fourth as manager.
Barca and Spain star Alexia Putellas was named UEFA Women’s Player of the Year, becoming the first player to win the award twice in a row.
And finally, Karim Benzema won the UEFA Men’s Player of the Year after a stellar season upfront from Real Madrid.
Group A: Ajax, Liverpool, Napoli, Rangers
Group B: Porto, Atlético Madrid, Bayer Leverkusen, Club Brugge
Group C: Bayern Munich, Barcelona, Inter Milan, Viktoria Plzeň
Group D: Eintracht Frankfurt, Tottenham Hotspur, Sporting Lisbon, Marseille
Group E: AC Milan, Chelsea, RB Salzburg, Dinamo Zagreb
Group F: Real Madrid, RB Leipzig, Shakhtar Donetsk, Celtic
Group G: Manchester City, Sevilla, Borussia Dortmund, Copenhagen
Group H: Paris Saint-Germain, Juventus, Benfica, Maccabi Haifa