Leicester City will face Napoli in this season's Europa League, while Celtic found themselves in a tough section alongside Bayer Leverkusen and Real Betis in Friday's draw for the group stage.
As well as Napoli, Leicester will play Spartak Moscow and Legia Warsaw in Group C as they look to do better than their run to the last 32 of last season's competition.
The Foxes narrowly missed out on qualification for the Champions League last season, finishing fifth in the Premier League but winning the FA Cup.
Napoli, who won the UEFA Cup with Diego Maradona in their ranks in 1989, came fifth in Serie A last season. They have since appointed Luciano Spalletti as coach.
Spartak came second in the Russian Premier League last season and lost to Benfica in the Champions League third qualifying round.
Polish champions Legia also lost in the Champions League third qualifying round, going out to Dinamo Zagreb.
Celtic too failed to make it through Champions League qualifying under new coach Ange Postecoglou but they scraped past AZ Alkmaar in the Netherlands on Thursday to make the Europa League group stage.
Their reward was a place in Group G with former UEFA Cup winners Leverkusen, Betis and Ferencvaros.
The Hungarian champions were beaten by Young Boys in the Champions League play-off round. They knocked Celtic out in Champions League qualifying last season.
Rangers, who beat Celtic to last season's Scottish title, will face French giants Lyon, Sparta Prague and Danish champions Brondby in Group A.
Steven Gerrard's team lost to Malmo of Sweden in the Champions League third qualifying round but scraped past Alashkert of Armenia in the Europa League play-offs this midweek.
West Ham United were England's other representatives in the draw made in Istanbul, making a rare appearance in Europe after coming sixth in the Premier League last season.
David Moyes's team will play two clubs who dropped out of Champions League qualifying in Dinamo Zagreb and Belgian side Genk, as well as Rapid Vienna in Group H.
The Europa League group stage has been streamlined this season to feature just 32 teams from the previous 48, following the introduction of the new third-tier Europa Conference League.
The final will be played at the Ramon Sanchez Pizjuan stadium in Seville on 18 May next year.
Villarreal won last season's trophy, beating Manchester United on penalties in the final in Gdansk, Poland.
The first round of group fixtures will be played on 16 September.
Group A: Lyon (FRA), Rangers (SCO), Sparta Prague (CZE), Brondby (DEN)
Group B: Monaco (FRA), PSV Eindhoven (NED), Real Sociedad (ESP), Sturm Graz (AUT)
Group C: Napoli (ITA), Leicester City (ENG), Spartak Moscow (RUS), Legia Warsaw (POL)
Group D: Olympiakos (GRE), Eintracht Frankfurt (GER), Fenerbahce (TUR), Royal Antwerp (BEL)
Group E: Lazio (ITA), Lokomotiv Moscow (RUS), Marseille (FRA), Galatasaray (TUR)
Group F: Sporting Braga (POR), Red Star Belgrade (SRB), Ludogorets (BUL), Midtjylland (DEN)
Group G: Bayer Leverkusen (GER), Celtic (SCO), Real Betis (ESP), Ferencvaros (HUN)
Group H: Dinamo Zagreb (CRO), Genk (BEL), West Ham United (ENG), Rapid Vienna (AUT)