Match ends, Atlético de Madrid 1, Barcelona 2.
Lionel Messi scored a late winner as Barcelona beat Atletico Madrid to go briefly top of La Liga.
Rafinha gave Barca the lead when Luis Suarez - who had an effort ruled out - took a shot which ricocheted off two defenders to land at his feet.
Diego Godin levelled when he headed home Koke's free-kick.
But Messi pounced in the 86th minute to win the game for the champions after his initial effort was blocked by defender Stefan Savic.
Real Madrid went back to the top of the table by one point later in the day when they came back from 2-0 down to beat Villarreal 3-2. They still have a game in hand on Barca.
Atleti, the 2014 champions, are now 10 points off leaders Real.
Messi is Barca's saviour again
Barca were far from their best again, but they have now followed their 4-0 Champions League humbling by Paris St-Germain with two 2-1 victories in La Liga - with Messi scoring a late winner in each of them.
Atletico dominated the first half, with Barca goalkeeper Marc-Andre ter Stegen making a multitude of saves. The visitors improved after the break but looked destined to be held until Messi's late intervention.
The Argentine, who had earlier forced a brilliant Jan Oblak save from a free-kick, pounced late on again from close range. Luis Suarez played the ball back to Messi, whose first shot was blocked by Savic. But he remained alert to poke home the rebound and send Barca top for four hours.
That was Messi's 20th La Liga goal in 21 games this season - and his 21st against Atletico in the league in as many attempts.
Atletico's title dream well and truly over
Atletico had looked well out of the title race at the end of 2016 but a run of eight La Liga games without a defeat, including six wins, had given them an outside chance of mounting a late challenge.
But nine points off Barca and 10 off Real, who have played one game fewer, is surely too big a bridge at this stage of the season, even for the brilliant coach Diego Simeone.
They will come to rue a series of missed efforts - with Godin driving over, and Gabi and Antoine Griezmann forcing saves from Ter Stegen in the first half, and the German again denying Griezmann after the break.
Godin's goal, his first against Barca since the effort which won the 2013-14 La Liga title, had looked enough for a point before Messi's late winner.
Now the real question is whether Atletico can hold onto the final Champions League qualifying spot, with fifth-placed Real Sociedad sitting only one point behind them.
- 15SavicBooked at 65mins
- 3Filipe Luís
- 14Fernández ArenasBooked at 73mins
- 8SaúlBooked at 56mins
- 10CarrascoSubstituted forTorresat 68'minutes
- 21GameiroSubstituted forCorreaat 72'minutesBooked at 74mins
- 1ter Stegen
- 24MathieuSubstituted forDigneat 77'minutes
- 5BusquetsBooked at 55mins
- 20RobertoSubstituted forAndré Gomesat 85'minutes
- 8IniestaSubstituted forRakiticat 71'minutes
- 10MessiBooked at 82mins
- 6D Suárez
- 21André Gomes
- Antonio Miguel Mateu Lahoz
- Shots on Target
Second Half ends, Atlético de Madrid 1, Barcelona 2.
Hand ball by Luis Suárez (Barcelona).
Offside, Atlético de Madrid. Sime Vrsaljko tries a through ball, but Ángel Correa is caught offside.
Goal! Atlético de Madrid 1, Barcelona 2. Lionel Messi (Barcelona) left footed shot from the right side of the six yard box to the bottom left corner following a set piece situation.
Attempt blocked. Lionel Messi (Barcelona) right footed shot from the centre of the box is blocked. Assisted by Luis Suárez.
Rafinha (Barcelona) wins a free kick in the attacking half.
Foul by Gabi (Atlético de Madrid).
Substitution, Barcelona. André Gomes replaces Sergi Roberto.
Lucas Digne (Barcelona) wins a free kick on the left wing.
Foul by Gabi (Atlético de Madrid).
Hand ball by Fernando Torres (Atlético de Madrid).
Lionel Messi (Barcelona) is shown the yellow card.
Foul by Neymar (Barcelona).
Sime Vrsaljko (Atlético de Madrid) wins a free kick in the defensive half.
Lionel Messi (Barcelona) wins a free kick in the defensive half.
Foul by Saúl Ñíguez (Atlético de Madrid).
Attempt blocked. Ivan Rakitic (Barcelona) right footed shot from the right side of the box is blocked.
Neymar (Barcelona) wins a free kick in the attacking half.
Foul by Sime Vrsaljko (Atlético de Madrid).