Match ends, Liverpool 4, 1899 Hoffenheim 2.
Liverpool 4-2 1899 Hoffenheim (agg 6-3)
Liverpool produced a stunning attacking display against play-off opponents Hoffenheim to ensure five English sides will compete in the Champions League group stage for the first time.
Leading 2-1 from the first leg, the Reds virtually wrapped up the tie with three goals in the opening 20 minutes.
Emre Can's deflected shot put them ahead before Mohamed Salah reacted quickest to slot in a rebound off the post.
Can stroked in Roberto Firmino's cross at the back post just 143 seconds later before Hoffenheim substitute Mark Uth, introduced after 24 minutes in a tactical reshuffle, pulled one back.
Former Hoffenheim forward Firmino put the tie beyond doubt after the break, sliding the ball into the bottom corner after Jordan Henderson dispossessed opposing captain Kevin Vogt before unselfishly squaring.
The German side, who finished fourth in the Bundesliga last season, did not lose their spirit and pulled another back when Sandro Wagner headed in Andrej Kramaric's left-wing cross.
The Reds, along with Chelsea, Tottenham, Manchester City and Manchester United will discover their group-stage opponents when the Champions League draw is made on Thursday (17:00 BST).
Rapid start eases Reds' path back into Champions League
Liverpool put themselves in a strong position to reach the Champions League group stage - for only the second time in eight seasons - after holding off a late Hoffenheim rally in last week's first leg.
Hoffenheim's 30-year-old manager Julian Nagelsmann insisted before the return leg that his team were "not in awe" of playing at Anfield. Their performance in the opening 20 minutes suggested otherwise.
The Reds - again missing Barcelona target Philippe Coutinho through illness - attacked from the whistle, unnerving the visitors with the energy and movement of forward trio Firmino, Sadio Mane and Salah.
That promising start gave optimism to the home fans and any lingering nerves around Anfield were quickly settled within 10 minutes when Can - with a slice of luck - put them ahead.
Liverpool continued to surge forward and, following a couple of warning signs from the visitors on the counter, left Hoffenheim needing to score three times when Salah calmly converted his first Reds goal at Anfield by pouncing on Georginio Wijnaldum's effort off the post.
Still Jurgen Klopp's men refused to sit back and, within three minutes, added the third.
Firmino started the move inside his own half, playing the ball up to Mane before racing down the left flank to collect the return ball and dink to Can at the far post.
That sparked manic celebrations from Klopp, who repeatedly punched the air in delight as he closed in on his own return to the Champions League.
The German, who led Borussia Dortmund to the 2013 final, demanded his side continue to attack after the break, Firmino sealing victory with a richly deserved goal.
However, the ease with which Wagner rose to head in Hoffenheim's second, highlighting the defensive vulnerability that continues to dog Liverpool, may have given Klopp cause for concern in an otherwise superb night.
Real? Barca? Dortmund? British sides focus on draw
After completing the job against Hoffenheim, Liverpool can now start thinking about which of Europe's top sides they might face in the group stage.
None of the English teams can be drawn against each other as sides from the same country are kept separate, although one of them could be drawn against Scottish champions Celtic.
Liverpool, placed in pot three, could be drawn against holders Real Madrid or Italian champions Juventus from pot one, while pot two contains five-time European champions Barcelona, big-spending French side Paris St-Germain and Klopp's old charges Borussia Dortmund.
England has only provided two Champions League semi-finalists in the past five campaigns and a poor showing in continental competitions this season could see the Premier League lose its fourth spot in the leading club competition to Italy.
With co-efficient points awarded for reaching the group stage, Liverpool's passage will help boost England's European ambitions as well as their own.
You can follow live coverage of the draw on the BBC Sport website from 17:00 BST on Friday.
'Hoffenheim was the most difficult draw' - post-match reaction
Liverpool manager Jurgen Klopp:
"We wanted a fast start and we have fulfilled our dream. It was fantastic.
"Playing Hoffenheim was the most difficult draw, alongside Napoli - we had two unbelievably hard games. We learned from the first game and adapted to a little change when they changed from five at the back to four at the back."
Liverpool captain Jordan Henderson:
"It has been a brilliant night - the atmosphere was brilliant all night and we were brilliant at the start and set the tempo.
"We let in a couple of goals so we have still got things to work on but overall we're delighted to get back into the Champions League where Liverpool belong.
"Now we have got to do ourselves justice and win some games there.
"We're in there and we've proved we can play against big teams. We're happy to play against whoever we're drawn against."
Man of the match - Sadio Mane (Liverpool)
Rampant Reds enjoying Europe - the stats
- Liverpool have returned to the Champions League group stages for the first time since the 2014-15 campaign.
- The Reds have never been eliminated from Europe having won a first leg away from home.
- Liverpool have scored three or more goals in consecutive European home games for the first time since March 1997.
- The Reds have now won six successive European games at Anfield against German opposition.
- Jurgen Klopp has overseen seven European games as Liverpool manager at Anfield, with the Reds winning each of the past six - their best run since November 2010.
- Emre Can scored twice in a game for the first time in his professional career.
- Sadio Mane has been directly involved in 15 goals in his 17 appearances at Anfield for Liverpool, scoring 10 goals and providing five assists.
- Mark Uth's strike was the first goal Simon Mignolet had conceded at Anfield in 313 minutes.
Back to the Premier League for Liverpool - and it is a big one.
The Reds, who are unbeaten in their first two games after drawing at Watford and beating Crystal Palace, host Arsenal at Anfield on Sunday (16:00 BST).
- 66Alexander-ArnoldSubstituted forGomezat 65'minutes
- 23CanSubstituted forMilnerat 70'minutes
- 14HendersonBooked at 45mins
- 9Roberto Firmino
- 19ManéSubstituted forKlavanat 88'minutes
- 6NordtveitSubstituted forUthat 24'minutes
- 22VogtBooked at 51mins
- 21HübnerBooked at 90mins
- 3KaderábekBooked at 37minsSubstituted forToljanat 64'minutes
- 32GeigerBooked at 30mins
- 29GnabrySubstituted forSzalaiat 56'minutes
- Daniele Orsato
- Shots on Target
Second Half ends, Liverpool 4, 1899 Hoffenheim 2.
Corner, 1899 Hoffenheim. Conceded by Joseph Gomez.
Benjamin Hübner (1899 Hoffenheim) is shown the yellow card.
Foul by Benjamin Hübner (1899 Hoffenheim).
Mohamed Salah (Liverpool) wins a free kick on the right wing.
Substitution, Liverpool. Ragnar Klavan replaces Sadio Mané.
Attempt missed. Roberto Firmino (Liverpool) right footed shot from the right side of the box is close, but misses to the right. Assisted by Georginio Wijnaldum.
Attempt missed. Alberto Moreno (Liverpool) left footed shot from outside the box is too high. Assisted by Dejan Lovren.
Foul by Benjamin Hübner (1899 Hoffenheim).
Georginio Wijnaldum (Liverpool) wins a free kick in the attacking half.
Goal! Liverpool 4, 1899 Hoffenheim 2. Sandro Wagner (1899 Hoffenheim) header from the centre of the box to the bottom left corner. Assisted by Andrej Kramaric with a cross.
Attempt saved. Kerem Demirbay (1899 Hoffenheim) left footed shot from outside the box is saved in the centre of the goal. Assisted by Sandro Wagner.
Offside, 1899 Hoffenheim. Benjamin Hübner tries a through ball, but Mark Uth is caught offside.
Hand ball by Mark Uth (1899 Hoffenheim).
Foul by Dennis Geiger (1899 Hoffenheim).
Roberto Firmino (Liverpool) wins a free kick in the defensive half.
Attempt blocked. Mark Uth (1899 Hoffenheim) left footed shot from outside the box is blocked.
Delay over. They are ready to continue.
Delay in match Kerem Demirbay (1899 Hoffenheim) because of an injury.
Substitution, Liverpool. James Milner replaces Emre Can.
Attempt blocked. Jeremy Toljan (1899 Hoffenheim) right footed shot from outside the box is blocked.
Substitution, Liverpool. Joseph Gomez replaces Trent Alexander-Arnold because of an injury.
Substitution, 1899 Hoffenheim. Jeremy Toljan replaces Pavel Kaderábek.
Goal! Liverpool 4, 1899 Hoffenheim 1. Roberto Firmino (Liverpool) right footed shot from the centre of the box to the bottom right corner. Assisted by Jordan Henderson.
Foul by Mohamed Salah (Liverpool).
Steven Zuber (1899 Hoffenheim) wins a free kick in the defensive half.
Attempt missed. Trent Alexander-Arnold (Liverpool) right footed shot from a difficult angle on the right misses to the right.
Attempt saved. Georginio Wijnaldum (Liverpool) right footed shot from the right side of the box is saved in the bottom right corner. Assisted by Trent Alexander-Arnold.
Foul by Ádám Szalai (1899 Hoffenheim).
Georginio Wijnaldum (Liverpool) wins a free kick on the right wing.
Offside, Liverpool. Jordan Henderson tries a through ball, but Emre Can is caught offside.
Corner, Liverpool. Conceded by Oliver Baumann.
Attempt saved. Sadio Mané (Liverpool) left footed shot from the left side of the box is saved in the top left corner. Assisted by Georginio Wijnaldum.
Substitution, 1899 Hoffenheim. Ádám Szalai replaces Serge Gnabry.
Attempt missed. Mark Uth (1899 Hoffenheim) left footed shot from the right side of the box misses to the left. Assisted by Serge Gnabry.
Attempt missed. Georginio Wijnaldum (Liverpool) right footed shot from the centre of the box is too high. Assisted by Mohamed Salah.
Attempt missed. Joel Matip (Liverpool) header from the centre of the box is high and wide to the left. Assisted by Alberto Moreno with a cross following a corner.
Corner, Liverpool. Conceded by Pavel Kaderábek.
Kevin Vogt (1899 Hoffenheim) is shown the yellow card for a bad foul.