Lionel Messi marked his return from red card suspension with a goal in the Copa del Rey on Wednesday as Barcelona reached the quarter-finals in the competition.
Barca dominated the match and hit the woodwork three times, but second division Rayo Vallecano took a surprise lead in the game when Barca keeper Neto failed to deal with a low cross and midfielder Fran Garcia pounced to bundle the ball over the line.
Rayo went looking for a second goal and were badly caught out on the break when Frenkie de Jong picked out Antoine Griezmann and the Frenchman laid the ball off for Messi to slot into the net from close range, which led to their victory.