Diego Lopez struck in the first half to give Valencia a precious win over Real Madrid on Sunday that moved them further away from the relegation zone in a game marred by racist chanting and a red card for Vinicius Junior.
With three games to go, Valencia are 13th in LaLiga on 40th points, five clear of the relegation spots. Madrid are third on 71 points, 14 behind champions Barcelona, who secured the title last week with four games to spare.
Madrid had nothing to play for after exiting the Champions League following a 4-0 thrashing at Manchester City on Wednesday in their semifinal, second leg.
Valencia, however, are still fighting to avoid the drop and found the net in the 33rd minute when Lopez scored from close range.
Real played the last few minutes with 10 men after Vinicius was sent off following a scuffle with Valencia players.
The Brazil winger had faced racist chants from fans at the Mestalla, which led to the game being halted for a few minutes in the second half.
"I don't want to talk about football today, there is no meaning in talking about football today," Real manager Carlo Ancelotti told Movistar Plus.
"What we saw today is unacceptable. An entire stadium chanting racist slurs, I told the referee that he should have stopped the match."
Ancelotti said Vinicius's reaction was "understandable" in the circumstances.
"I asked him if he wanted to keep playing, and he stayed in the game," the Italian said.
"LaLiga have a problem here. For me Vinicius is the most important player in the world. LaLiga has a problem, these episodes of racism have to stop the match.
"It's the entire stadium that is insulting a player with racist chants and the match has to stop. I would say the same if we were winning 3-0, there is no other way.
"Vinicius is very sad, he is angry. Something like this can't happen in the world we live in."