Rayo Vallecano have secured their La Liga survival in dramatic fashion with a 1-0 win over Granada on the final day of the season.
The decisive goal came in injury time when Raul Tamudo headed in from a corner.
The result means that Jose Ramon Sandoval's side have avoided the drop by two points after Villarreal lost 1-0 to Atletico Madrid.