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
-
Free dialysis treatment to be available in 40 facilities from December 1 – NHIA CEO
4 mins -
NHIA will need GHC57 million annually to fund free dialysis treatment – NHIA CEO
10 mins -
MELPWU signs first-ever Collective Agreement with government
35 mins -
I’ve not been evicted from my home – Tema Central MP refutes ‘unfounded’ reports
37 mins -
After Free SHS, what next? – Alan quizzes and pledges review to empower graduates
1 hour -
Wontumi FM’s Oheneba Asiedu granted bail
1 hour -
Alan promises to amend the Constitution to limit presidential powers
2 hours -
Ghana to face liquidity pressures in 2025, 2026 despite restructuring most of its debt – Fitch
2 hours -
NPP’s record of delivering on promises is unmatched – Bawumia
2 hours -
Mahama: It’s time to dismiss the incompetent NPP government
2 hours -
Today’s front pages: Monday, November 25, 2024
2 hours -
T-bill auction: Government misses target again; interest rates continue to rise
2 hours -
We have a bad technical team; Otto Addo and his team should go – Ernest Thompson
3 hours -
Hindsight: Why Accra Lions’ present problems do not define them
4 hours -
10-year-old Lisa Laryea arrives at Wits Donald Gordon Hospital in South Africa for bone marrow transplant
4 hours