Match ends, Real Sociedad 1, Barcelona 2.
Barcelona scored two goals in three second-half minutes to come from behind and beat Real Sociedad to maintain their 100% start to the La Liga season.
The champions trailed after 12 minutes when they failed to clear a free-kick and Aritz Elustondo lashed in.
But Luis Suarez scrambled the ball home in the 63rd minute before Ousmane Dembele converted at another corner.
La Real could have been further in front but missed three chances shortly before the Barcelona goals.
Barca goalkeeper Marc-Andre ter Stegen made two fine saves, denying Real Madrid loanee Theo Hernandez and Juanmi while Mikel Oyarzabal blazed over at the end of a quick counter-attack.
The hosts, playing at their newly renovated Anoeta stadium for the first time, could have grabbed a point late on but Juanmi headed narrowly wide from inside the area.
Barcelona were poor in the first half and also capitalised on goalkeeping errors for both goals with Geronimo Rulli missing punches at both set pieces.
The win for Ernesto Valverde's side is their fourth from four games this season and keeps them top of the table.
Earlier in the day, Atletico Madrid needed an injury-time debut goal from Borja Garces to draw 1-1 with Eibar.
Line-ups
Real Sociedad
Formation 4-1-2-1-2
- 1Rulli
- 2Zaldua
- 15Elustondo
- 6Moreno
- 19Hernández
- 5Zubeldia
- 4IllarramendiBooked at 43minsSubstituted forMerinoat 82'minutes
- 17ZurutuzaSubstituted forBautistaat 73'minutes
- 14PardoSubstituted forSangalliat 82'minutes
- 7Juanmi
- 10Oyarzabal
Substitutes
- 8Merino
- 13Moyá
- 18Gorosabel
- 20Rodrigues
- 21Bautista
- 22Navas
- 23Sangalli
Barcelona
Formation 4-3-3
- 1ter Stegen
- 2Nélson SemedoSubstituted forCoutinhoat 45'minutes
- 3Piqué
- 23UmtitiBooked at 87mins
- 18Alba
- 20Roberto
- 4Rakitic
- 12RafinhaSubstituted forBusquetsat 57'minutes
- 10Messi
- 9Suárez
- 11DembéléSubstituted forVidalat 77'minutes
Substitutes
- 5Busquets
- 7Coutinho
- 13Cillessen
- 15Lenglet
- 19El Haddadi
- 22Vidal
- 24Vermaelen
- Referee:
- Carlos del Cerro Grande
- Attendance:
- 26,482
Match Stats
- Possession
- Home31%
- Away69%
- Shots
- Home8
- Away12
- Shots on Target
- Home5
- Away6
- Corners
- Home1
- Away6
- Fouls
- Home18
- Away8
Live Text
Post update
Full Time
Second Half ends, Real Sociedad 1, Barcelona 2.
Post update
Attempt blocked. Mikel Merino (Real Sociedad) left footed shot from outside the box is blocked. Assisted by Luca Sangalli.
Post update
Attempt blocked. Luis Suárez (Barcelona) right footed shot from the centre of the box is blocked. Assisted by Coutinho.
Post update
Coutinho (Barcelona) wins a free kick in the defensive half.
Post update
Foul by Igor Zubeldia (Real Sociedad).
Booking
Samuel Umtiti (Barcelona) is shown the yellow card.
Post update
Foul by Samuel Umtiti (Barcelona).
Post update
Jon Bautista (Real Sociedad) wins a free kick in the attacking half.
Post update
Attempt missed. Juanmi (Real Sociedad) header from the centre of the box is close, but misses to the right. Assisted by Mikel Merino with a through ball.
Post update
Offside, Real Sociedad. Luca Sangalli tries a through ball, but Juanmi is caught offside.
Substitution
Substitution, Real Sociedad. Mikel Merino replaces Asier Illarramendi.
Substitution
Substitution, Real Sociedad. Luca Sangalli replaces Rubén Pardo.
Post update
Foul by Lionel Messi (Barcelona).
Post update
Theo Hernández (Real Sociedad) wins a free kick in the defensive half.
Post update
Sergio Busquets (Barcelona) wins a free kick in the defensive half.
Post update
Foul by Asier Illarramendi (Real Sociedad).
Post update
Attempt missed. Lionel Messi (Barcelona) left footed shot from outside the box is high and wide to the left.
Post update
Samuel Umtiti (Barcelona) wins a free kick in the defensive half.
Post update
Foul by Jon Bautista (Real Sociedad).