Lionel Messi scored a penalty and set up another goal as Barcelona came back to beat Rayo Vallecano 3-1 and stay firmly in control of the Spanish league on Saturday.

Messi crossed for Gerard Pique to cancel out an opening goal by Rayo’s Raul de Tomas, then Messi put the hosts ahead at Camp Nou with a spot kick early in the second half.

Luis Suarez tapped in a pass from substitute Ivan Rakitic to put the result beyond doubt with eight minutes remaining.

FC Barcelona's Gerard Pique, second left, heads for the ball to score his side's first goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)
FC Barcelona’s Gerard Pique, second left, heads for the ball to score his side’s first goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)

Barcelona stayed seven points ahead of second-placed Atletico Madrid, which beat Leganes 1-0.

Real Madrid was in distant third place at 15 points adrift before visiting Valladolid on Sunday.

Barcelona hosts Lyon on Wednesday in the Champions League last 16 after a 0-0 draw in the first leg.

FC Barcelona's Gerard Pique, left, heads for the ball to score his side's first goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)
FC Barcelona’s Gerard Pique, left, heads for the ball to score his side’s first goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)

Messi leads La Liga in goals and assists. He has scored 26 times and made 12 direct passes for teammates to score through 27 rounds.

___

FC Barcelona's Lionel Messi, second right, duels for the ball during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)
FC Barcelona’s Lionel Messi, second right, duels for the ball during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)
FC Barcelona's Luis Suarez, second right, kicks the ball to score his side's third goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)
FC Barcelona’s Luis Suarez, second right, kicks the ball to score his side’s third goal during the Spanish La Liga soccer match between FC Barcelona and Rayo Vallecano at the Camp Nou stadium in Barcelona, Spain, Saturday, March 9, 2019. (AP Photo/Manu Fernandez)