West Ham have reached this stage of the competition for the first time
The Premier League side made it straight to the last 16 by topping their group.
Rangers had to come through the round of 32 and beat Borussia Dortmund 6-4 on aggregate over two legs to reach this stage for the third successive season.
Leicester will play France's Rennes in the Europa Conference League last 16.
The first legs in both competitions will be played on 10 March with the second legs on 17 March.
David Moyes' Hammers will travel to Spain first, while Rangers begin with a home tie at Ibrox.
La Liga side Sevilla last won the competition in the 2019-20 season and will host the final at their Ramon Sanchez Pizjuan Stadium.
"I think it's the pick of the round," said Moyes. "Sevilla is a really tough game, but it would be good to get used to the stadium.
"We've played well in Europe and we'll take a big support to Seville and really look forward to it.
"There is more pressure on them than there is on us because we're new to it. We're getting used to it and hopefully we'll get more used to it in the future."
Elsewhere in the Europa League, Barcelona have drawn Turkish side Galatasaray.
German side RB Leipzig will play Spartak Moscow. It is unclear where the second leg of that tie will be played because Spartak, the last Russian side left in European competition, cannot play at home because of Russia's invasion of Ukraine.
Russia has also been stripped of the 2022 Champions League final, with the game moved from St Petersburg to Paris.
Rangers v Red Star Belgrade
Braga v Monaco
Porto v Lyon
Atalanta v Bayer Leverkusen
Sevilla v West Ham
Barcelona v Galatasaray
RB Leipzig v Spartak Moscow
Real Betis v Eintracht Frankfurt
Marseille v FC Basel
Leicester v Rennes
PAOK v Gent
Vitesse v Roma
PSV Eindhoven v FC Copenhagen
Slavia Prague v LASK
FK Bodo/Glimt v AZ Alkmaar
Partizan Belgrade v Feyenoord
-- Courtesy of BBC Sport