Luis Suarez scored his first Primera Division goal and Lionel Messi hit a late double as Barcelona rounded off a difficult 2014 by thrashing minnows Cordoba 5-0.
Pedro got Barcelona off to a dream start by netting in the second minute and then provided the pass for Suarez to double the lead early in the second half, with Gerard Pique and Messi scoring the final goals all in the last 10 minutes.
The Catalans are now one point behind league leaders Real Madrid, but have played one game more than Carlo Ancelotti's side, who took a break from league action this weekend to play the World Club Cup final against San Lorenzo.
Paco Alcacer scored his first league goal in nine matches as Valencia recorded a 1-0 victory to collect all three points at Eibar.
The Spain international walked the ball into the net with half an hour gone and the goal proved enough to see off the Basques and give Nuno's side a second straight win in the league, taking Los Che above Sevilla and up to fourth spot.
David Moyes was denied his maiden away win as Real Sociedad boss and the club's first in the league since April as they drew 1-1 at Levante after conceding a stoppage-time penalty.
Sociedad led from the 48th minute when Sergio Canales converted from Xabi Prieto's cross, but they missed out on all three points thanks to Andreas Ivanschitz's spot-kick in the 92nd minute following a handball by Carlos Martinez.