Lamine Yamal returned from injury to help Barcelona beat Real Sociedad 2-1 on Sunday and move top of La Liga by one point.
After Real Madrid were thrashed 5-2 by rivals Atletico Madrid in a derby on Saturday, Hansi Flick's side had the chance to claim pole position above Xabi Alonso's side.
Alvaro Odriozola gave Real Sociedad the lead against the run of play in the first half but Jules Kounde headed the Spanish champions level.
Yamal, who missed the last four games with a groin injury, created the winner for Robert Lewandowski just moments after coming on as a second-half substitute.
"I'm very happy for (Yamal), very pleased that he's back on the pitch because we're going to need him," Kounde told Movistar.
Barcelona held the game at the Olympic stadium, where they have played for the last two seasons, after the city council refused them a permit to reopen their Camp Nou home earlier in the week. (AFP)