Pedri scored the only goal of the game as LaLiga leaders Barcelona maintained their unbeaten top-flight streak at home with a 1-0 win against Getafe.
The midfielder’s first-half strike sent Xavi’s side six points clear of Real Madrid, who face Athletic Bilbao later on Sunday, but it was far from a routine victory.
Getafe frustrated their opponents throughout with a resolute defensive showing, while calling Marc-Andre ter Stegen into action with several decisive saves.
Quique Sanchez Flores’ visitors could not find an equaliser, however, as Barca made it nine games without defeat in the league at Camp Nou.
Getafe thought they had taken a shock lead four minutes in, Borja Mayoral drilling an effort into the near corner past Ter Stegen but the offside flag was raised for an earlier infringement.
Having been limited to shots from distance, Barca found a breakthrough after 35 minutes as Raphinha found space before cutting across goal for Pedri to tuck home.
Pedri’s poor pass almost handed Getafe an equaliser but Ter Stegen produced a crucial save against Mayoral to keep Barca ahead at the interval.
Xavi’s hosts continued to dominate proceedings in the second half as Getafe defended with resilience, though Ousmane Dembele went close after whistling a strike just wide.
Substitute Franck Kessie wasted a fine opportunity late on after firing straight at David Soria, but that mattered for little as Barca maintained their title charge.