Second-half goals from Pedri and Raphinha rescued 10-man Barcelona as they fought back to win 2-1 at Osasuna in LaLiga on Tuesday after striker Robert Lewandowski was sent off in the first-half.
Pedri equalised from a rebound three minutes after the break and Raphinha came off the bench to score Barca's winner five minutes from fulltime, with a brilliant dipping header from outside the box that looped over the goalkeeper into the net.
- Stream on ESPN+: LaLiga, Bundesliga, more (U.S.)
The win ensured Barca will go into the World Cup break top of the standings on 37 points and it was a feisty affair with Gerard Pique, who was on the bench, also shown a red card at half-time after complaining to the referee in what was the last game of his career.
"I am really proud of the team, of the family that we are inside the dressing room," Barcelona coach Xavi Hernandez told Movistar Plus.
"Everything was against us today: the refereeing decisions, the goal, going down to 10... We were intelligent. We took our moments well and were clinical with the chances we had.
"We were solid in the second half, worked hard and we will be leaders during the World Cup break. It's a team win today. I am very proud."
The encounter started badly for the visitors and swiftly got worse.
First David Garcia headed Osasuna into the lead from a corner in the sixth minute before Lewandowski saw red following a second booking in the 31st.
He was shown a yellow card for dragging back Nacho Vidal in the 11th minute and 20 minutes later he received his marching orders after charging with his forearm in the face Garcia.
It was only the second red card of Lewandowski's career, almost 10 years after he was sent off in the Bundesliga for Borussia Dortmund against Hamburg in February 2013.
It was an ill-tempered game, with both teams given four bookings each and Barcelona manager Xavi Hernandez also receiving a yellow card following several outbursts at the referee.
Pique's red card brought down the curtain on a glittering career after he announced he would retire from soccer when LaLiga breaks for the World Cup this week.
"Pique would have come on today because [Andreas] Christensen wasn't able to play 90 minutes and Eric Garcia has some pain," Xavi added. "He was the first centre-back to come off the bench and would have done [if he wasn't sent off]."
Barcelona took control of the match and Ferran Torres had a goal ruled out just before half-time for offside, before Pedri's equaliser and Raphinha settled the contest in style.
Barcelona sit five points ahead second-placed Real Madrid, who will host second-bottom Cadiz on Thursday.
Osasuna are sixth on 23 points.
Information from ESPN's Sam Marsden was used in this report.