Manchester United were drawn in Group A of the Champions League and will face games against Shakhtar Donetsk, Bayer Leverkusen and Real Sociedad.
Manchester City were drawn in group D and will face defending champions Bayern Munich, CSKA Moscow and Viktoria Plzen.
Both Manchester clubs will be relatively happy at the groups they were assigned.
The first group games will be played between September 17 and 18.