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
|Asensio credits Zidane for Madrid´s thrilling Betis comeback|
|Zidane hopeful over Marcelo hamstring injury|
|Bonaventura claims Milan can catch Inter|
|Bravo for Claudio! Guardiola to pick keeper at Wembley|
|Mourinho hoping for reinforcements at Sevilla|
|Real Madrid become first side to score 6,000 goals in LaLiga|
|Real Betis 3 Real Madrid 5: Asensio at the double in LaLiga classic|
|AC Milan 1 Sampdoria 0: Bonaventura makes it 10 unbeaten for Rossoneri|
|Schurrle excited to finally link up with Reus and Gotze|
|Real Madrid defender Marcelo suffers hamstring injury|
|Costa fumes referees ´want to give me a card´, but Simeone plays down penalty row|
|Stoger makes Dortmund history with Gladbach win|
|Championship Review: Leeds fight back for point, Norwich & Ipswich share derby spoils|
|Borussia Monchengladbach 0 Borussia Dortmund 1: Burki unbeatable as Reus returns to haunt Foals|
|FA Cup ´magic´ no surprise to Pochettino after Rochdale thriller|
|Rochdale hero Davies: This is every kid´s dream|
|Atletico Madrid will not stop in pursuit of Barcelona, promises Gameiro|
|´Wrong image´ to blame for VAR confusion in Manchester United´s FA Cup win|
|Rochdale 2 Tottenham 2: Davies denies Kane in FA Cup classic|
|Atletico Madrid 2 Athletic Bilbao 0: Gameiro and Costa settle cagey clash|
|Napoli set club record with another Serie A win|
|Napoli 1 SPAL 0: Allan sends hosts top of Serie A again|
|Allegri allays Higuain injury fears|
|Allegri convinced Juve can get past Spurs|
|Everton fear ´long-term´ injury for Mangala|
|If it isn´t Madrid, it´s Paris - Hazard tires of speculation|
|Torino 0 Juventus 1: Champions win derby but lose Higuain|
|Neymar exit made Barcelona stronger - Ter Stegen|
|Injured Higuain forced off against Torino|
|Jesus confident of returning strong after knee injury|
|We had to change hotels – Ovrebo recalls fury after 2009 Chelsea-Barcelona semi-final|
|Spalletti: Inter board will decide my future|
|Fabregas still wary of timeless Iniesta|
|Liverpool´s 30-goal hero Salah: There´s more to come|
|Valverde: Coutinho dropped for the good of Barcelona|
|Ronaldo better than Neymar? No says Xavi|
|Real Madrid hurt you with nothing – Xavi says PSG loss an injustice|
|Conte: Chelsea need perfect game to stop Messi and Barcelona|
|Inter in a fragile moment, says Spalletti|
|Booed Emery praises PSG´s mental strength|
|Cavani hails ´good reaction´ as PSG bounce back in style|
|Mourinho wants referees to have final say on VAR|
|Genoa 2 Inter 0: Pandev piles misery on old employers|
|Manchester United to host Brighton in FA Cup quarter-finals|
|Mata ´still up for VAR´ despite disallowed goal at Huddersfield|
|Valverde: Barcelona had to suffer at Eibar|
|Championship Review: Fulham end Villa run, Cardiff pounce|
|Huddersfield Town 0 Manchester United 2: Lukaku sends visitors through after VAR controversy|
|Bayern Munich boss Heynckes hails game-changing Muller|
|Locadia benefiting from ´competitive´ Brighton - Hughton|
|Baby on board? Alba dedicates Barca goal to girlfriend|
|West Brom future ´not a decision for me´, says Pardew|
|Paris Saint-Germain 5 Strasbourg 2: Cavani at the double in bounce-back win|
|Bar-celona! Messi posts unwanted record|
|Barca go 31 LaLiga games unbeaten to tie club record|
|Mourinho: I don´t know and I don´t care when Pogba returns|
|Brighton and Hove Albion 3 Coventry City 1: Locadia, Ulloa lead Seagulls to quarter-finals|
|EIbar 0 Barcelona 2: Suarez and Alba seal points as Orellana sees red|
|West Brom 1 Southampton 2: Rondon stunner in vain as Baggies drop out|
|Wolfsburg 1 Bayern Munich 2: Lewandowski spot-on after Robben´s penalty miss|
|I hope Cutrone finds a beautiful girlfriend so he can rest and make love - Gattuso|
|Allegri denies Champions League ´obsession´ ahead of Turin derby|
|Barry, Evans start for West Brom after training camp incident|
|Sheffield Wednesday 0 Swansea City 0: Carvalhal settles for replay on Hillsborough return|
|Management ´tiring´ but Zidane not ready to leave Madrid just yet|
|Thiago back for Bayern as Heynckes rests stars for Besiktas|
|Simeone urges Atletico fans to get behind Griezmann|
|Robben amazed by Guardiola´s impact at Manchester City|
|Pogba out of Man Utd´s Huddersfield trip with illness|
|A-League Review: Perth ´Panenka´ punished, 10-man Adelaide rescue late draw|
|Robben targets two more years at the ´highest level´|
|Rashford and Herrera ´have a chance´ of making Sevilla trip|
|Emery defends PSG star Neymar after Madrid display|
|Mahrez saga now over, says Leicester boss Puel|
|Alonso to return for Barca clash but Bakayoko set to miss first leg – Conte|
|Mourinho: Manchester United will sign a midfielder|