BARCELONA, Spain (AP) -- Lionel Messi scored twice and set up two more goals as Barcelona beat Lyon 5-1 to reach the Champions League quarterfinals for a 12th consecutive season on Wednesday.
After a 0-0 draw in the first leg, Luis Suarez ensured Barcelona was up 2-0 by halftime by earning a penalty converted by Messi and setting up Philippe Coutinho to score.
Lucas Tousart gave the visitors hope with a goal in the 58th minute after Barcelona failed to clear a corner kick, leaving Lyon one goal from going through.
But Messi scored again in the 78th before passing for Gerard Pique and substitute Ousmane Dembele to round off the win.
Messi's goals were his seventh and eighth in the Champions League this season and took his tally to 36 in all competitions for Barcelona.
With the win, Barcelona set a Champions League record of 30 consecutive home matches without a loss that dates back to September 2013.
Barcelona also stayed on course for a possible treble of titles. It leads the Spanish league and has reached the final of the Copa del Rey.
In Wednesday's other game, Sadio Mane scored twice as Liverpool advanced with a 3-1 win at Bayern Munich.
Barcelona was on the front foot from the start and Lyon goalkeeper Anthony Lopes did well to swat away Messi's first shot on goal shortly after kickoff.
But he could only watch hopelessly while prone on the turf when Messi floated his penalty kick past, using the "Panenka" style scoop after the goalie has moved too early.
Messi's 17th-minute spot kick was thanks to Suarez, who deftly sought and found contact with sliding defender Jason Denayer in the area to draw a foul.
Lyon striker Moussa Dembele had the visitors' only chance in the first half but he shot wide when Barcelona's midfielders were caught off-balance in transition.
Suarez, however, continued to torment Lyon*s backline with his runs into the box. The Uruguay international assisted Coutinho to double the lead on the half-hour mark. A quick switch of the ball from his left boot to his right was enough for Suarez to juke past Fernando Marcal and draw in Lopes before he passed for Coutinho to tap home.
Lopes had already been shaken up in a collision with Coutinho that forced play to be stopped for around five minutes before he tried to go on playing. But Lopes finally asked to be substituted in the 34th.
Backup Mathieu Gorgelin denied Messi from close range before halftime, and Marcal hustled back to clear Messi's chipped shot before it crossed the line just after the restart.
Lyon grabbed a lifeline when a corner kick was knocked on by three players -- including two from Barcelona -- before Tousart controlled the ball with his chest and fired past Marc-Andre ter Stegen.
Nabil Fekir then fired high as Lyon's pressure worried Barcelona for the first time.
Seeing his team's control of the match in danger, Barcelona coach Ernesto Valverde sent on Dembele and Arturo Vidal to try and equal Lyon in speed and muscle.
Messi made the most of the back-and-forth second half when he received the ball alone while charging toward the area. He put the ball on his left foot to draw two defenders the wrong way, before he cut back to his right and poked the ball under Gorgelin.
The Argentina forward then found Pique and Dembele arriving unmarked on quick attacks to turn the game into a rout.