Barcelona secured a hard-fought 2-1 victory against Celta Vigo, with Robert Lewandowski sealing the win with a retaken penalty in the 97th minute.
The Poland striker had earlier opened the scoring with a powerful shot, but Celta’s Iago Aspas equalized with a deflected strike.
Barcelona’s win keeps them in third place, seven points behind Real Madrid, who lead the La Liga table. Real Madrid are five points clear of second-placed Girona after their 1-1 draw with Villarreal.
Barcelona’s late heroics have been a hallmark of their season, with 24 points earned from goals scored after the 76th minute, the most in the league.
Despite their league position, Barcelona remain unbeaten in four matches since coach Xavi announced his departure at the end of the season.
Their focus now turns to the Champions League, where they face Napoli in the last 16. Atletico Madrid are fourth in La Liga after a 5-0 thrashing of Las Palmas, with Marcos Llorente and Angel Correa both scoring twice.
Manager Diego Simeone rested key players ahead of their Champions League tie against Inter Milan. Cadiz remain in the relegation zone after a 2-0 loss to Osasuna.