Luis Suarez scored a late winner to help Atletico Madrid beat Alaves 2-1 and return to the top of La Liga.
Atletico had taken the lead late in the first half when Suarez teed up a deflected goal by Marcos Llorente and the task should have got easier for the visitors when Alaves defender Victor Laguardia was sent off in the second half.
Opinion: Varane can be Man Utd's most transformative defender since Rio Ferdinand
But Alaves had a flurry of late chances and levelled in the 84th minute when Atleti defender Felipe diverted a cross from Joselu into his own net.
Atletico would not be undone, however, and they clinched a vital victory for their title charge when substitute Joao Felix cut the ball across goal and Suarez pounced from less than a metre out to bundle it into the net.
Atletico went into the match trailing Real Madrid by a point but the last-gasp victory took them on to 38 points, two ahead of their city rivals and with two games in hand.
"We knew it would be a difficult game as Alaves always make things tough and they proved that by drawing level with one player less but it was so important for us to get the win," said goalscorer Llorente.
"Our substitutions worked very well and we got the second goal after a great piece of play and it allows us to keep focusing on our objective."
Atletico had been boosted by the news Kieran Trippier's 10-week suspension from the English Football Association for violating betting rules had been put on hold by world organising body FIFA, although the right-back did not travel to the match as the squad had been named before the announcement was made.
Sime Vrsaljko started in Trippier's place while record signing Felix began the game on the bench but was introduced after the hour mark and the Portuguese played a decisive role in the win, with his incisive late pass to the feet of Suarez.
Ferdinand backs Varane to star in Premier League
Varane to Man Utd is Real’s next step in plan to sign Mbappe – Paper Round