Match ends, Real Madrid 3, Valencia 2.
Cristiano Ronaldo scored twice as Real Madrid held on to beat Valencia 3-2 and keep their La Liga title hopes alive.
Real's victory moved them into second place with one game to go, still one point behind leaders Barcelona, who routed Espanyol 5-0.
Atletico Madrid's 2-1 loss at Levante means only Real and Barca can prevail.
Ronaldo's goals either side of a Karim Benzema strike made it 3-1, but Andre Gomes' goal added to Rodrigo's earlier effort to make it a nervy finish.
Defending champions Barca will take the title if the teams finish level on points thanks to their superior head-to-head record.
Ronaldo took his goal tally for the season to 49 with two excellent finishes, firing low into the net from 20 yards with his right foot to give Real the lead half-way through the first half.
After Rodrigo had pulled one back early in the second half, Ronaldo then restored Real's two-goal advantage as he ran clear to beat Diego Alves with a left-foot shot.
The hosts' cause was aided when goalscorer Rodrigo was dismissed on 83 minutes.
Who is standing in Real Madrid's way?
Barcelona have the destiny of the title in their own hands but should they drop points at Granada, Real will secure their first championship since 2012 with a win at Deportivo de La Coruna.
Deportivo would still have been in relegation danger going into the last day but for a 2-0 win at Villarreal on Sunday.
However, that was only their second league win in 21 games.
- 14CasemiroBooked at 52mins
- 18VázquezSubstituted forRodríguez Ruizat 76'minutes
- 9BenzemaSubstituted forKovacicat 65'minutes
- 7Cristiano RonaldoSubstituted forArbeloaat 79'minutes
- 20Rodríguez Ruiz
- 1Alves Carreira
- 23AbdennourSubstituted forMina Lorenzoat 45'minutes
- 6SiqueiraBooked at 39mins
- 15PérezBooked at 13minsSubstituted forPiattiat 86'minutes
- 18Fuego MartínezBooked at 69mins
- 2CanceloSubstituted forAndré Gomesat 45'minutesBooked at 43mins
- 17RodrigoBooked at 83mins
- 3Nunes Vezo
- 12Barbosa da Silva
- 21André Gomes
- 22Mina Lorenzo
- David José Fernández Borbalán
- Shots on Target
Second Half ends, Real Madrid 3, Valencia 2.
Attempt blocked. Shkodran Mustafi (Valencia) right footed shot from outside the box is blocked.
Pablo Piatti (Valencia) wins a free kick in the attacking half.
Foul by Sergio Ramos (Real Madrid).
Daniel Parejo (Valencia) wins a free kick in the attacking half.
Foul by Jesé (Real Madrid).
Attempt missed. Santi Mina (Valencia) right footed shot from long range on the left is high and wide to the right. Assisted by Daniel Parejo.
Corner, Valencia. Conceded by Álvaro Arbeloa.
Javi Fuego (Valencia) wins a free kick in the defensive half.
Foul by Mateo Kovacic (Real Madrid).
Substitution, Valencia. Pablo Piatti replaces Enzo Pérez.
Rodrigo (Valencia) is shown the red card.
(Real Madrid) wins a free kick in the defensive half.
Goal! Real Madrid 3, Valencia 2. André Gomes (Valencia) right footed shot from outside the box to the top right corner. Assisted by Daniel Parejo following a corner.
Corner, Valencia. Conceded by Kiko Casilla.
Attempt saved. Rodrigo (Valencia) left footed shot from the centre of the box is saved in the bottom left corner. Assisted by Santi Mina with a cross.
Substitution, Real Madrid. Álvaro Arbeloa replaces Cristiano Ronaldo.
Substitution, Real Madrid. Jesé replaces Lucas Vázquez because of an injury.