Barcelona restored their seven-point lead at the top of LaLiga as they came from behind to beat Rayo Vallecano 3-1 at Camp Nou on Saturday.
With the gap earlier cut to four points after Atletico Madrid beat Leganes 1-0, Barca went into the contest under pressure and were a long way from their best in the first half.
And Rayo threatened to hand Atleti's prospects of overhauling the defending champions a boost when they opened the scoring through Raul de Tomas' fine strike.
OUT-STANDINGS!pic.twitter.com/lZCRPINiYF— FC Barcelona (@FCBarcelona) March 9, 2019
Rayo started brightly and were denied what looked a decent shout for a penalty when Pique appeared to pull down De Tomas just inside the area.
Only the fine reflexes of Stole Dimitrievski prevented Luis Suarez from opening the scoring as the Macedonia international turned his low effort behind, and the Camp Nou crowd was then silenced as his counterpart at the other end was beaten.
Pique wasted a gilt-edged chance just after the half hour, sending a close-range header well wide, but atoned for that miss as the centre-back nodded home Messi's right-wing free-kick.
And the turnaround was completed six minutes after the restart, Messi casually beating Dimitrievski from 12 yards, punishing Jordi Amat for an ill-advised challenge on Semedo on the right side of the box.
Jose Pozo flashed an effort wide as Rayo sought a leveller and, though Alex Moreno did well to head a seemingly goal-bound Messi free-kick behind, Rayo could not prevent Suarez from tapping in a third after combining superbly with Ivan Rakitic.
What does it mean? - Barca below their best
Ernesto Valverde named a surprisingly strong side just four days out from the second leg of a Champions League tie with Lyon that hangs in the balance and will not have been completely impressed by what he saw. Rayo were in the game until late on and posed Barca plenty of problems at the back.
Suarez shines brightest
In a game where few Barca players were on top form, Suarez was in impressive form. He was unlucky not to open the scoring and the goal that clinched it was a treat for those inside Camp Nou.
Amat gifts Barca winner
Rayo defended well for much of the match, but they were undone by one of their own as Amat brought down Semedo in a passage of play where there was no real threat to their goal. There was no way back from there, and as a result Rayo remain second bottom of LaLiga, two points adrift of safety.
Barca welcome Lyon to Camp Nou for their last-16 meeting before travelling to Real Betis on Sunday, when Rayo visit Villarreal in a crucial game at the bottom.