Lionel Messi became the all-time top scorer for a single club after scoring his 644th goal for Barcelona during their La Liga match against Real Valladolid, surpassing Pele's record goal haul for Brazilian side Santos.

The 33-year-old Argentine, who matched Pele's record of 643 goals with a strike against Valencia on Saturday, scored to make it 3-0 to Barca at Valladolid, having set up the opening goal for Clement Lenglet. 

Messi also had a hand in Barca's second goal, laying on a pass for right back Sergino Dest to latch on to down the right flank and play a cross into the path of Martin Braithwaite, who slid in to score in the 35th minute.

Messi capped a brilliant individual and team display with a splendid goal midway through the second half, running in behind to meet a pass from teenager Pedri and slotting into the far bottom corner to eclipse Pele's scoring mark with Santos.

The star attacker then almost scored a second in added time when he raced through on goal but fired against the post from a tight angle.

It was Barca's first away league win in five matches, moving on to 24 points after 14 games, and the victory leaves the Catalonia side in fifth place in the table, and remain eight points behind leaders Atletico Madrid, who won 2-0 away at Real Sociedad.