Cristiano Ronaldo is set for a return to his former club Manchester United as his new club Juventus were drawn with the English side in the Champions League draw on Thursday.
Spanish side Valencia and Young Boys, of Switzerland, complete Group H.
Champions League runners-up Liverpool, Ligue 1 champions Paris St Germain and Serie A side Napoli were thrown together in the pick of the groups.
The trio were drawn into Group C alongside Red Star Belgrade, European Cup winners in 1991 and making their debut in the group stage.
Titleholders Real Madrid will face last season's semi-finalists AS Roma plus CSKA Moscow and Viktoria Plzen in Group G.
Inter, back in the competition for the first time since 2011/12, face Barcelona, Tottenham Hotspur and PSV Eindhoven in Group B which features three former European champions
Group A: Atletico Madrid, Borussia Dortmund, Monaco, Club Brugge.
Group B: Barcelona, Tottenham, PSV, Inter.
Group C: PSG, Liverpool, Napoli, Red Star.
Group D: Lokomotiv Moscow, Porto, Schalke, Galatasaray.
Group E: Bayern Munich, Benfica, Ajax, AEK Athens.
Group F: Man. City, S. Donetsk, Lyon, Hoffenheim.
Group G: Roma, Real Madrid, CSKA Moscow, V. Plzen.
Group H: Juventus, Manchester United, Valencia, Young Boys.