Valencia came from behind to beat Barcelona 3-1 in their final LaLiga match of the season, but the win was not enough to secure European qualification.
Robert Lewandowski marked his final Barcelona appearance with a goal, putting the champions ahead just after the hour mark. However, Valencia responded with two quick goals to secure all three points at Mestalle.
First Half
Hugo Duro, Luis Rioja and Unai Núñez all had early chances for the hosts before Diego López fired wide. It took a big block from Ronald Araújo to deny López again late in the first half.
Alejandro Balde fired into the side netting for Barcelona, who then went closest when Lewandowski headed against an upright.
The half ended with Valencia threatening once more as Núñez brought a good save out of Wojciech Szczesny.
Second Half Twist
The hosts suffered a damaging blow early in the second half when López was forced off with what appeared to be a painful knee injury.
Ferran Torres' volleyed strike was heading wide but the alert Lewandowski diverted it goalwards for his 119th Barcelona goal in his four seasons with the club.
Valencia wanted a penalty when Núñez went down moments later but their protests were waved away.
Only two minutes later they were level as Javi Guerra picked up the ball on the edge of the box and feinted before beating Szczesny.
Four minutes after that, the hosts were ahead. Following neat work from Jesús Vázquez, Guerra saw his shot charged down but the ball fell for Rioja who fired a left-footed shot beyond Szczesny.
Valencia then thought they had a penalty when Marc Bernal brought down Vázquez, but a VAR check showed the incident happened outside the box.
The third goal arrived deep into stoppage time when Guido Rodríguez found the net from outside the box.
The hosts hung on to claim the three points, but Getafe's win over Osasuna and Rayo Vallecano's victory at Alavés kept them out of the European places.