Lionel Messi scored his 644th goal for Barcelona during his side's victory over Real Valladolid to break Pele's record of the most goals for one club.
Argentina forward Messi, 33, scored Barca's third when he collected Pedri's backheel, took a touch then slotted the ball past goalkeeper Jordi Masip.
Messi created the first goal when his cross was headed in by Clement Lenglet and started the move for the second, finished off by Martin Braithwaite.
Messi also hit the post in injury time.
Brazil great Pele scored 643 goals in 19 seasons for Santos in his homeland between 1956 and 1974.
Messi, who scored his first goal for Barca in 2005 and has gone on to win 10 La Liga titles and four Champions Leagues, is out of contract at the end of the season and able to talk to other clubs from January.
In August, he said he wanted to exercise a clause in his deal which he said allowed him to leave on a free transfer, but Barcelona refused, saying his 700m euro (£624m) release clause had to be met.
Earlier this week, Messi said the incident caused him to have "a very bad time in the summer", although he was in superb form against Valladolid on Tuesday, inspiring a win that took Barcelona back up to fifth, eight points behind leaders Atletico Madrid.
Barca could have scored more goals but Masip made a number of fine saves and substitute Philippe Coutinho also hit the woodwork late on.
Marc-Andre Ter Stegen made two one-handed saves to deny Fabian Orellana and Kike Perez, preserving Barcelona's clean sheet.
Earlier on Tuesday, Atletico beat third-placed Real Sociedad 2-0 thanks to goals from Mario Hermoso and Marcos Llorente to go three points clear of Real Madrid, who play Granada at home on Wednesday.
Latest Stories
-
We have a bad technical team; Otto Addo and his team should go – Ernest Thompson
55 mins -
Hindsight: Why Accra Lions’ present problems do not define them
1 hour -
10-year-old Lisa Laryea arrives at Wits Donald Gordon Hospital in South Africa for bone marrow transplant
2 hours -
23 ambassadors inducted to take on 2025 GSTEP Challenge in three regions
2 hours -
Ghana Shea Workers Union inaugurated
2 hours -
I trust Bawumia; he has never lied to me – Akufo-Addo
3 hours -
Bawumia is hardworking; offers the youth platform to share ideas – Kow Essuman
3 hours -
IGP, Police commanders worship with churches in Ghana as part of security arrangements for 2024 elections
3 hours -
Mahama is a failed president; give Bawumia a chance – Akufo-Addo to Ghanaians
3 hours -
‘No child left behind in Free SHS’ – Akufo-Addo declares
3 hours -
MMDAs tasked to pay more attention to TB cases
3 hours -
2024/25 GPL: Defending champions Samartex suffer second consecutive loss as Basake Holy Stars wins 1-0
3 hours -
Government stands firm in Galamsey fight, says Akufo-Addo
3 hours -
National Peace Council assures public of violent free elections
3 hours -
Agenda 111 to be discontinued if NDC comes to power – Akufo-Addo
3 hours