Lionel Messi set a new goalscoring landmark as Barcelona came from two goals down to beat Real Sociedad 4-2 and break their Anoeta curse.
A stunning late free-kick at the end of an otherwise quiet outing from the Argentina star made him the top league goalscorer for one club in any of Europe's top five divisions, surpassing Gerd Muller with his 366th LaLiga goal.
The Catalan giants had returned winless from their last seven trips to Sociedad in the top flight and were primed for further disappointment after falling behind to Willian Jose's 11th-minute header.
Juanmi doubled the hosts' lead with a heavily deflected finish after a superb assist from Sergio Canales, but that only served to stir Barca into life and Paulinho reduced the deficit before half-time.
Within five minutes of the restart the scores were level as Luis Suarez finished brilliantly for his 12th league goal of the season.
Suarez then grabbed a second 19 minutes from time after goalkeeper Geronimo Rulli's poor clearance proved costly for Eusebio Sacristan's men, with Messi putting the icing on the cake.
The result restores Barca's nine-point lead at the summit, elevating them 19 ahead of champions Real Madrid, breaking an 11-year spell without a league win at Anoeta in the process.
Barca – without the services of injured new signing Philippe Coutinho – started brightly and Suarez was denied by the onrushing Rulli at the end of a determined run into the Sociedad box, while the keeper also had to be alert to keep out Sergi Roberto soon after.
But the visitors found themselves behind as Willian Jose headed Xabi Prieto's searching cross into the ground and over Marc-Andre ter Stegen.
Barca struggled to mount any meaningful response, with their play uncharacteristically sloppy and Sociedad looking the more confident team on the ball.
The home side thought they had a second when Willian Jose's deflected shot nestled into the back of Ter Stegen's net, but Ivan Rakitic had been fouled beforehand.
Their disappointment was soon assuaged as another goal did arrive, Juanmi collecting a wonderful lofted throughball from Canales before driving his effort off Roberto and into the net.
Ernesto Valverde's men got back into the contest six minutes before the break, Suarez laying on a simple finish for Paulinho.
Barca threatened early in the second half, with Messi rounding compatriot Rulli, who recovered well to divert the ball behind for a corner that came to nothing.
But Rulli was helpless to prevent Suarez's excellent equaliser, which he curled home side-footed from just inside the box.
Valverde introduced Ousmane Dembele in place of Paulinho just past the hour mark as he sought to get a firm grip on the contest, which was by then being played in sodden conditions.
Sociedad sent a timely reminder of their remaining threat when Willian Jose climbed well to connect with a header, but his attempt was wayward.
The turnaround was complete in the 71st minute, Suarez calmly tucking in his second after Rulli's lazy-looking clearance was headed into the Uruguayan's path by Thomas Vermaelen.
There was still time for Messi to create yet more history, sending a world-class free-kick into the net to make certain of the points.
New record for Lionel Messi!— Omnisport (@OmnisportNews) January 14, 2018
The Argentina star's 366th league goal for Barcelona takes him beyond Gerd Muller, who previously held the record for most goals for a single club in Europe's top five divisions.
Barca win 4-2 at Real Sociedad.#LaLiga #FCBarcelona pic.twitter.com/kErueJjXTb
|Conte: Chelsea´s winning mentality can´t be questioned|
|Benching Willian was a fantastic decision, boasts Chelsea boss Conte|
|Juventus critics don´t know Tottenham, says Pjanic|
|Hull City 1 Sheffield United 0: Dicko blunts Blades´ promotion chase after fan protest|
|Lukaku tipped for ´big things´ by United team-mate Matic|
|Emery hopes Classique can inspire Real Madrid comeback|
|I thought he was an actor! - Valverde dodges Arthur questions|
|Valverde hints at resting Messi, Suarez for Girona clash|
|Napoli sign free agent Milic|
|Zidane offers condolences after Basque police officer´s death|
|FA charge Guardiola over yellow ribbon protest|
|City have to lift titles - Guardiola focused on Wembley glory against Arsenal|
|Spalletti urges Inter to ´believe in our strength´ and end wretched run|
|Christensen a future Chelsea captain, says Conte|
|Fonte leaves West Ham for Dalian Yifang|
|Guardia Civil search Guardiola family´s plane|
|Unwell Neymar facing race to make Le Classique|
|Playing Chelsea means less and less every year, says Mourinho|
|Conte hopes Manchester United bench ´fantastic´ Pogba|
|Dembele ´a genius of football´ like Maradona and Ronaldinho, claims Pochettino|
|Villarreal suspend Semedo after attempted murder allegation|
|Jesus could return but Guardiola has doubts over Sterling|
|He took 10 seconds to be ready – Mourinho salutes professional Pogba|
|Alderweireld a doubt as Pochettino stays silent on transfer rumours|
|Conte dismisses Mourinho tension|
|Nothing is decided - Klopp urges against Liverpool complacency|
|Heynckes ´can´t imagine´ Bayern sanctioning Lewandowski sale|
|FIFA closes Neymar´s Barcelona bonus case|
|Bale still important to Real Madrid, Zidane insists|
|Heynckes plays down Robben´s frustration|
|Central Coast Mariners 1 Wellington Phoenix 0: Hosts end 11-match winless run|
|Arsenal handed tough Milan test in Europa League´s round of 16|
|Europa League: Last-16 draw in full|
|Vitolo apologises for sexist ´joke´ after Atletico win|
|Paletta joins Jiangsu Suning|
|Messi, Ronaldo and Neymar are the only superstars, says Pele|
|Arsenal have ´unfinished business´ in EFL Cup after 2011 loss - Wilshere|
|Srna given 17-month doping ban|
|Arsenal boss Wenger backs Wilshere after Keane rant|
|Basque police express ´dismay´ at death of officer after fan violence|
|Wembley hero Ramsey winning race to face Manchester City|
|EFL Cup final: Bravo and Ospina pitch to be heroes before stepping back into the shadows|
|EFL Cup final: Wenger aiming for another glorious Wembley outing|
|CONCACAF Champions League Review: Guadalajara poised for quarters, Red Bulls draw|
|Keane: Wilshere is the most over-rated player on the planet|
|Stoger: Dortmund were lucky to survive Atalanta scare|
|Gattuso hopes to continue as AC Milan boss|
|Europa League Review: Arsenal survive scare, Dortmund battle past Atalanta|
|´Complacent´ Arsenal had no ideas, Wenger admits|
|Wilshere pulls no punches after Arsenal´s Ostersunds defeat|
|Batshuayi accuses Atalanta fans of racism|
|Villarreal defender Semedo charged with attempted murder|
|Police officer dies after clashes between Athletic Bilbao and Spartak Moscow fans|
|Atalanta 1 Borussia Dortmund 1 (3-4 agg): Returning Schmelzer strikes late|
|AC Milan 1 Ludogorets 0 (4-0 agg): Borini strike secures victory at San Siro|
|Arsenal 1 Ostersunds 2 (4-2 agg): Gunners through despite Emirates shock|
|Simeone open to Carrasco, Torres exits amid CSL reports|
|Mancini: Zenit not Europa League contenders|
|Europa League Review: Napoli´s comeback in vain, Immobile sends Lazio through|
|Ferdinand has doubts over Kane´s Tottenham future|
|Zenit 3 Celtic 0 (3-1 agg): Ivanovic inspires second-leg turnaround|
|Atletico Madrid 1 Copenhagen 0 (5-1 agg): Gameiro ensures Simeone´s men cruise through|
|Why De Gea really is untouchable as the Premier League´s best goalkeeper|
|I wouldn´t sell him - Arbeloa wants Bale to remain at Real Madrid|
|Leeds United delay reveal of new club crest|
|Guti urges Neymar to leave PSG for Real Madrid|
|Azpilicueta: Chelsea must be perfect to beat Barcelona|
|Roma star Under tipped to win Ballon d´Or before 2023|
|Zola denies he will join Sarri at Chelsea next season|
|Barcelona is my club - Sergi Roberto rejects other interest to sign new deal|
|Lewandowski employs Zahavi as agent as Real Madrid rumours continue|
|Pardew confirms Evans remains West Brom captain|
|Muntari joins Seedorf at Deportivo La Coruna|
|Rooney: Moving to China for the money would have been easy|
|Carrasco left out of Atletico squad amid China move reports|
|Arthur: Move to Barcelona still on track|
|Blatter backs Morocco 2026 World Cup bid|
|Wenger sees Welbeck emerging from torrid struggles|
|Zidane stands by selfless Benzema|
|´Important names´ keen on Inter star Icardi|
|Manchester United v Chelsea: Mourinho and Conte´s feud in their own words|
|Manchester United v Chelsea: Grant´s disastrous debut, Drogba´s ´offside´ goal and other Old Traffor|
|Walker motivated by EFL Cup final showdown with Arsenal|
|Manchester United v Chelsea: ´Specialist in failure´, eye-pokes and Mourinho´s other best rows|
|CONCACAF Champions League Review: America close in on quarters with huge win|
|Keane defends Pogba as former United captain demands more from Lukaku and Sanchez|
|Stoger labels Reus ´indispensable´ amid Milan links|
|Ferdinand and Man United team-mates doubted De Gea|
|Shakhtar would´ve won by more if not for Roma´s Alisson – Fonseca|
|Championship Review: Wolves squander two-goal lead to Norwich, Cardiff City take advantage|
|Mourinho happy with ´big effort´ from Pogba|
|Mourinho questions medical staff after ´bad´ Herrera injury|
|Sarri demands better from Napoli ´buffoons´|