Jurgen Klopp will take his side to his native Germany to face Hoffenheim while Napoli take on French side Nice.
Uefa Champions League play-off draw: Liverpool and Napoli handed tough ties
Liverpool must come through a tough two-legged play-off tie against Hoffenheim if they are to return to the group stage of the Uefa Champions League after a three-year absence, following Friday's draw.
Jurgen Klopp will take his Liverpool team back to his native Germany for the first leg on August 15 or 16 with the return at Anfield a week later.
Hoffenheim are in the Champions League for the first time in their history after finishing fourth in the Bundesliga last season. Their manager Julian Nagelsmann, who turned 30 last month, is one of the most highly-rated young managers in the game.
- Premier League 2017/18 preview: Team-by-team guide and top half predictions
Premier League 2017/18 preview: Team-by-team guide and bottom half predictions
Liverpool finished fourth in the Premier League last season. The five-time European champions were last in the Champions League in 2014/15, when they failed to make it out of their group.
Spanish side Sevilla have been drawn against last season's Turkish league runners-up Istanbul Basaksehir, who boast the likes of Emmanuel Adebayor and Gael Clichy in their ranks and eliminated Club Brugge in the third qualifying round.
Napoli, who came third in Serie A last season, were handed a difficult draw against Nice, third in France's Ligue 1 and victors against Ajax in the third qualifying round. Nice are hoping to add UAE playmaker Omar Abdulrahman to their ranks ahead of the new season, with a loan offer on the table for Al Ain to consider.
Scottish giants Celtic, who were in the section of the draw reserved for domestic champions, must once again beat Astana of Kazakhstan if they are to return to the group phase. The Glasgow club will host Astana in the first leg before a journey of nearly 4,000 miles for the return leg on August 22 or 23. Celtic won 3-2 on aggregate when the teams met in the third qualifying round last season.
Draw for the UEFA Champions League play-off round:
Qarabag (AZE) v FC Copenhagen (DEN)
APOEL (CYP) v Slavia Prague (CZE)
Olympiacos (GRE) v Rijeka (CRO)
Celtic (SCO) v Astana (KAZ)
Hapoel Beer-Sheva (ISR) v Maribor (SLO)
Istanbul Basaksehir (TUR) v Sevilla (ESP)
Young Boys (SUI) v CSKA Moscow (RUS)
Napoli (ITA) v Nice (FRA)
Hoffenheim (GER) v Liverpool (ENG)
Sporting (POR) v FCSB (ROM)
* Agence France-Presse