Liverpool will face Real Madrid, FC Basel and Ludogorets on their return to the Champions League this season.
The draw was made in Monaco on Thursday evening, with Liverpool drawn in Group B.
The Reds last faced Real in 2009, when they humbled the Spanish giants 4-0 at Anfield and won 1-0 in the Bernabeu.
The last, and only, meeting with FC Basel was in 2002 when the Swiss side drew 3-3 and 1-1 in the group stages.
Bulgarian side Ludogorets qualified for the Champions League for the first time via the play-off on Wednesday night, doing so in dramatic circumstances when their defender saved two penalties in the penalty shoot-out.
Brendan Rodgers’ side are back in the competition for the first time since 2009/10, having finished second in the Premier League last season.
Group A: Atletico Madrid, Juventus, Olympiakos, Malmo
Group B: Real Madrid, Basel, Liverpool, Ludogorets Razgrad
Group C: Benfica, Zenit St Petersburg, Bayer Leverkusen, Monaco
Group D: Arsenal, Borussia Dortmund, Galatasaray, Anderlecht
Group E: Bayern Munich, Manchester City, CSKA Moscow, Roma
Group F: Barcelona, Paris St-Germain, Ajax, APOEL Nicosia
Group G: Chelsea, Schalke, Sporting Lisbon, Maribor
Group H: Porto, Shakhtar Donetsk, Athletic Bilbao, BATE Borisov
MATCHDATES: (fixtures to be finalised)
Matchday 1: 16–17 September 2014
Matchday 2: 30 September–1 October 2014
Matchday 3: 21–22 October 2014
Matchday 4: 4–5 November 2014
Matchday 5: 25–26 November 2014
Matchday 6: 9–10 December 2014