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
|Copa Libertadores Review: Palmeiras advance, Nacional claim crucial win|
|I´m the best defender in Serie A, says Inter´s Miranda|
|Real Madrid still relying on Bale – Zidane|
|Ramos: Madrid were expected to win 3-0 but Bayern are difficult|
|Boateng casts doubt over Bayern future|
|Salah a Ballon d´Or contender, says Lovren|
|Muller demands killer mentality from Bayern at Bernabeu|
|Kimmich: Bayern should have beaten Madrid 7-2|
|Heynckes: We gave Real Madrid two goals|
|Wenger intends to ´play in Europe again´|
|Madrid suffered in Munich triumph, says Kroos|
|Isco injury prompted Asensio introduction – Zidane|
|Ronaldo breaks record for wins in Champions League|
|Bayern Munich 1 Real Madrid 2: Asensio seals smash-and-grab win for Zidane´s men|
|Wenger clarifies comment on Arsenal exit ´timing´|
|Boateng injury worry for Bayern and Germany|
|Robben injured in Bayern v Madrid Champions League semi-final|
|Icardi will wait for World Cup dream|
|Oxlade-Chamberlain ´absolutely devastated´ by knee injury|
|Simeone hails Wenger and distances himself from Arsenal switch|
|Madrid bench Benzema and Bale as James starts for Bayern|
|Salah used to have problems in front of goal, says former Basel team-mate Sommer|
|Oxlade-Chamberlain ruled out of World Cup|
|Arsenal´s Bellerin slams Daily Mail as ´click baiters´|
|Mourinho suggests United were ´not prepared to win´ before his arrival|
|Wolves in the clear over Mendes link-up|
|Salzburg first, history later for Garcia and Marseille|
|Leeds owner defends controversial Myanmar tour|
|Henderson: Injured fan´s recovery is the only result that matters|
|Ronaldo sends signed shirt to Manchester United star Rashford|
|This group deserves something special – Wenger wants to exit on a high|
|Vieira ´ready for Europe´ amid reported Arsenal interest|
|Wenger focused on Arsenal despite desire to keep working elsewhere|
|Mourinho has made me a better person, says McTominay|
|Gerard sacked as Barca B coach after woeful winless run|
|Bayern links ´an honour´ for Madrid man Bale|
|Roma ashamed by Liverpool fan attack|
|UEFA ´shocked by vile attack´ on Liverpool fan|
|Campbell tips Vieira and Bergkamp to replace Wenger|
|Courtois to sue former Belgium coach Wilmots|
|Heavyweights Ronaldo and Lewandowski go head to head – Champions League in Opta numbers|
|Copa Libertadores Review: Gabriel leads Santos, Atletico cruise|
|He decides the biggest moments – Wijnaldum hails Salah|
|Roma have some hope, says Monchi|
|Messi? Ronaldo? Salah is world´s best player – Gerrard|
|Liverpool are not Barcelona – Klopp cautious of Roma comeback|
|Liverpool supporter in ´critical condition´ after fan clashes|
|It´s all-inclusive football with Liverpool! - Klopp pleased despite Roma recovery|
|Montella to remain Sevilla coach until end of season|
|Di Francesco: Roma gave up – but if you don´t believe in a comeback, stay at home|
|Klopp accepts Salah substitution sparked Roma fightback|
|Oxlade-Chamberlain may miss World Cup after suffering ´a really bad injury´|
|De Rossi blames long balls for Roma ´blackout´ at Anfield|
|Late Liverpool lapses sour stunning Salah show|
|Henderson wary of Barcelona repeat as Roma leave Liverpool with hope|
|Championship Review: Cardiff slip up as Barnsley stay in the relegation zone|
|Liverpool 5 Roma 2: Salah shines but late comeback offers Giallorossi hope|
|Salah sets Liverpool record with spectacular first-half double|
|Oxlade-Chamberlain carried off in Champions League semi-final|
|Firmino back, as Milner starts for Liverpool against Roma|
|I didn´t want James to go - Zidane ready for Champions League reunion with familiar face|
|Kroos: You can´t buy the Champions League|
|Leeds urged to help Rohingya during ´odd´ Myanmar tour|
|Buffon slams reports of breakdown in Benatia relationship|
|Former France coach Michel dies aged 70|
|Ancelotti talks not about Italy job, says Costacurta|
|It was a weird few days - FA Cup final ref Oliver reflects on Buffon incident|
|Boateng not intimidated by supreme athlete Ronaldo|
|Heynckes: James was depressed after Real Madrid exit|
|Worry about Ronaldo? Real Madrid should fear Lewandowski, says Heynckes|
|Supporter tensions have affected Wenger - Rice|
|Germany submits Euro 2024 bid dossier|
|If Lewandowski wants to go, Bayern will have to let him – Effenberg|
|´Goal machine´ Ronaldo more complete than Messi – Kimmich|
|Bayern Munich v Real Madrid: Is this the end of the ´BBC´?|
|Zidane taking entire Madrid squad to Munich|
|Buffon reaction to Real Madrid penalty ´understandable´ – UEFA president|
|Liverpool owner was ´bitching´ about overpaying for Salah – Roma president|
|Liverpool Salah v Roma Salah: The Opta numbers|
|Salah eyes Reds record, Roma´s away-day struggles - Champions League semi-final in Opta numbers|
|The Spanish Inquisition - Bayern´s UCL hoodoo vs LaLiga´s big boys|
|Dani Alves: I´d return to Barcelona tomorrow|
|No friendly Roma reunion for Salah, warns Klopp|
|WATCH: Translator wins Klopp´s approval after lengthy response|
|Swap spaghetti for burgers? Di Francesco not considering Premier League move|
|Allardyce hits back at style critics after scrappy Everton win|