The former Real Madrid defender diverted Lamine Yamal’s header past his own keeper.
Former Real Madrid defender Sergio Ramos put through his own net to hand Barcelona a 1-0 win against Sevilla.
Xavi’s side looked set for a second LaLiga draw in succession following their midweek 2-2 clash at Mallorca before Ramos’ own goal with 14 minutes remaining.
The win takes Barcelona top of the table, one point ahead of Girona and two clear of Real Madrid, who travel to Girona on Saturday.
Following the draw at Mallorca on Tuesday, Xavi made four changes with Robert Lewandowski returning to the starting line-up. Jules Kounde partnered Andreas Christensen in defence, while 16-year-old Lamine Yamal was also handed a start.
For Sevilla, Ramos, 37, who returned to his boyhood club last month following 16 years at the Bernabeu and two seasons with Paris St Germain, was among five changes for his side’s trip to Barcelona’s temporary home at the Montjuic Olympic Stadium.
Sevilla arrived for Friday night’s fixture unbeaten in their last four outings and fresh from a 5-1 midweek demolition job of Almeria, but it was the hosts who enjoyed the best of the opening exchanges with Joao Felix involved.
First the Portuguese forward, on loan from Atletico Madrid, forced Orjan Nyland into a fine save following a low drive. And then midway through the opening period, Felix rattled the woodwork from six yards out after neat build-up play by Joao Cancelo.
Substitute Fermin Lopez then wasted a good chance just minutes before the interval when his shot from Yamal’s cross was straight at a thankful Nyland.
After the break, the chances continued to fall the way of the hosts, with Lewandowski’s close-range shot saved by the legs of Nyland on the hour mark before the impressive Yamal then dragged an effort wide. Moments later, Lewandowski’s shot was headed clear by Loic Bade.
Barcelona might have been wondering if it was going to be one of those nights but with 75 minutes gone, they were handed a lifeline.
Yamal’s header back across goal from Ferran Torres’ cross dropped into Ramos’ path and the ex-Real defender, who netted five times in 33 appearances against Barcelona, inadvertently scored past Nyland.
From there, a shell-shocked Sevilla never looked like getting back in the match as Barcelona saw out the game, including five additional minutes, to claim top spot in LaLiga.