Lionel Messi scored his 500th goal for Barcelona in all competitions by netting a dramatic late winner in El Clasico.
The Argentina international had gone into Sunday's clash against Real Madrid at the Santiago Bernabeu on 498 goals after his double in last weekend's Liga win over Real Sociedad.
He drew a blank against Juventus in the Champions League in midweek, but he reached another landmark figure in a career littered with records when he scored twice in Madrid to send Barcelona top of the table after a 3-2 victory.
Messi scored his 499th goal for Barcelona with a superb individual effort on 33 minutes to cancel out Casemiro's opener for Madrid, with that effort making him the leading scorer in El Clasico in La Liga, surpassing Alfredo Di Stefano.
Ivan Rakitic's brilliant strike fired Barca in front on 73 minutes, but Madrid, who had Sergio Ramos sent off for a wild lunge on Messi, looked to have claimed a point when substitute James Rodriguez equalised with five minutes to go.
However, in the second minute of added time, Jordi Alba's low pass into the penalty area picked out Messi and he guided his shot beyond Keylor Navas to earn Barcelona the points.
500 - Lionel Messi has scored his 500th goal for Barcelona in all competitions. Stellar. pic.twitter.com/Jx3kUl1CQ9— OptaJose (@OptaJose) April 23, 2017
Messi has spent his entire professional career at Barca, joining the Catalan club from Newell's Old Boys in 2001 when he was still only 14.
The teenage prodigy broke into the senior squad just three years later, making his Liga debut in October 2004, against Espanyol. "It seemed as if he had been playing with us all his life," enthused Barcelona's then assistant coach Henk Ten Cate.
Messi netted the first of his 500 goals for the club the following May, against Albacete, and has since gone on to break record after record.
In 2012 alone, he made history by scoring more goals in all club competitions in a single season (73) and across a calendar year (79) on his way to becoming Barcelona's all-time leading marksman in La Liga.
"I feel sorry for those who want to compete for Messi's throne because it's impossible, as this kid is unique," Pep Guardiola said of a player who was still only 24 at the time.
In 2014, Messi hit a hat-trick against Sevilla to pass Telmo Zarra's tally of 251 Liga goals.
With his brace against Madrid, he has now reached another milestone and, given he is still only 29, there could still be many more records to come.