Real Madrid's Karim Benzema celebrates after scoring his sides first goal during the Champions League, round of 16, second leg soccer match between Real Madrid and Liverpool at the Santiago Bernabeu stadium in Madrid, Spain, Wednesday, March 15, 2023. (AP Photo/Bernat Armangue)

There was no historic comeback for Liverpool. Real Madrid's title defense in the Champions League rolls into the quarterfinals.

Liverpool never really came close to overcoming its three-goal deficit from the first leg against the titleholders at the Santiago Bernabeu Stadium on Wednesday, losing 1-0 to end its hopes of another run to the final.

Karim Benzema scored late and Madrid advanced to the last eight for the third straight season with a 6-2 aggregate score following a 5-2 win from the first leg in England, when it rallied from two goals down early in the first half.

Liverpool was trying to pull off something never done before in the Champions League - erase a three-goal loss as a visitor. Only five times the team that lost at home rallied in the second leg in Europe's top club competition.

"You needed a special performance and we didn't show a special performance," Liverpool manager Jurgen Klopp said. "In moments, it was a good performance, but Real Madrid was the team in control the whole game. Madrid was the better team and deserved to advance."

The only time Madrid failed to advance in the Champions League after winning the first leg on the road was in 2019, when it was eliminated by Ajax in the round of 16. It had won six of its last seven matches against Liverpool in the tournament, drawing another.

"It was the type of match we wanted," Madrid coach Carlo Ancelotti said. "It was difficult for them to press up front. The team played well, it was focused from the start."

Napoli defeated Eintracht Frankfurt 3-0 in the other round-of-16 match on Wednesday to join Madrid, AC Milan, Bayern Munich, Benfica, Chelsea, Inter Milan and Manchester City in the draw for the quarterfinals on Friday.

Benzema scored from close range after a pass by Vinicius Junior in the 79th minute. The France striker, who had missed Madrid's Spanish league win against Espanyol last weekend because of an injury, has scored 13 goals in his last eight Champions League knockout stage matches. He limped during the goal celebration but said afterward it was just a knock.

"It was a complicated match, against a good opponent," Benzema said. "We showed from the start that we wanted to attack, so it was a good match for the fans and we are into the quarterfinals."

Liverpool came out with an attack-minded lineup and showed its intentions early, with Darwin Nunez forcing Madrid goalkeeper Thibaut Courtois to make a tough save on a breakaway seven minutes into the match.

It was an open match at the Bernabeu and Madrid had its chances as well, with Eduardo Camavinga coming close to scoring in the 20th with a shot from outside the area that struck the crossbar after a deflection by Alisson Becker. The Liverpool goalkeeper also stopped a chance by Madrid forward Vinicius Junior in the first half and another in the second in a one-on-one situation with midfielder Federico Valverde.

Klopp kept trying to push his team forward from the sideline, but as the minutes passed it became clear it wasn't going to be enough for the English team.

Liverpool had managed a big comeback at home in the 2019 semifinals, rallying against another Spanish club, Barcelona. It won 4-0 after losing 3-0 at the Camp Nou to keep alive a run that eventually ended with the team winning the trophy.

Madrid, which had beaten Liverpool in last year's final, played in its 300th Champions League game.

The loudspeakers at the Bernabeu played Liverpool's "You'll Never Walk Alone" anthem at the end of the match as fans from both clubs applauded.

"We are two heavyweights who meet each other quite frequently in international football and quite clearly we respect each other a lot," Klopp said. "It was a really nice gesture, absolutely."