After a dramatic day of football, the BBVA premier Liga saw Barcelona slip and Real Madrid leapfrog to the top of the table, going three points clear of reigning champions and leaders Atletico Madrid.
Real Madrid's 3-0 win at home to Elche, coupled with Barca's 3-1 defeat away to Real Sociedad marked the change at the top, reports Xinhua.
Barca kicked off knowing they needed a win in order to retain their leadership, but they were always second best to a magnificently organized Real Sociedad, who played intelligent football and used the pace of Carlos Vela and Antoine Griezmann to win the game.
The Basques opened the scoring after Alex Song turned a Sergio Canales cross into his own net under pressure from Gorka Elustondo, before Leo Messi scored a smart goal from the edge of the penalty area to take the sides in level at the break.
If Barca thought they would go on to win the second half they were mistaken as first Griezmann and then David Zurutuza punished some slack defending with excellent finishes on the break.
Barca had half an hour to try and get back on level terms after Zurutuza made it 3-1, but the fact is Real Sociedad goalkeeper Claudio Bravo did not have to make a difficult save between the final goal and the end of the game.
Real Madrid had few problems in what was a routine win over Elche, although the points were not secured until 18 minutes from time when Gareth Bale scored a stunning 30 yard shot to make the score 2-0.
A deflected shot from Asier Illaramendi had given Madrid the lead after 34 minutes and after Bale had secured the points in a game in which Madrid keeper, Diego Lopez was hardly called into action, Isco rounded off the win with a solo goal 10 minutes from time.
Real Madrid 3, Elche 0; Celta Vigo 1, Getafe 1; Real Sociedad 3, Barcelona 1; Almeria 0, Malaga 0