Unbeaten La Liga leaders Barcelona ended 2012 on a high when Lionel Messi struck his 91st goal of the year in a 3-1 win at Real Valladolid and their arch-rivals Real Madrid were beaten 3-2 at Malaga.
It was the perfect tonic for Barca following the news this week that coach Tito Vilanova needed throat surgery. He was absent from Valladolid's Jose Zorrilla stadium as Barca racked up a record 16th win in 17 games this season.
Real's woes deepened after the champions suffered a second consecutive setback following last weekend's 2-2 draw at home to Espanyol.
Coach Jose Mourinho sprung a surprise by leaving captain and goalkeeper Iker Casillas on the bench and the defeat left Real, who are third, 16 points adrift of Barca. They are seven behind second-placed Atletico Madrid, who won 1-0 at home to Celta Vigo on Friday.