Cristiano Ronaldo has become the first player to score in six consecutive Clasicos.
The 27-year-old opened the scoring in the 23rd minute minute at Camp Nou with a powerful left-footed drive after latching on to a Karim Benzema cross. Messi had the hosts ahead in the second half, but it was the Portuguese star who struck back with lovely placed finished to beat Victor Valdes.
The previous record of five, which Ronaldo matched in the 2-1 win over Barca in August, was held by Chilean striker Ivan Zamorano, who represented Los Blancos between 1992 and 1996.
During his Clasico career, the fomer Manchester United winger has now netted 10 goals against the Blaugrana, seven goals behind Lionel Messi, who has scored a total of 17 times against the Catalans' arch rivals.
Of the five previous occasions Ronaldo has found the net against Barcelona, he has ended up on the losing team three times, though he did find the target in last year's Liga win at Camp Nou.