Sporting Gijon secured their top-flight status with a 2-0 win over Villarreal at El Molinon on the final day of the season on Sunday night.
The hosts took the lead through Jony after just eight minutes and a second goal from Sergio Fernandez Alvarez 11 minutes from time made certain of the three points, which took Rojiblancos up to 16th place, one point clear of the relegation zone. The Yellow Submarine finished fourth.
Gijon’s victory condemned Rayo Vallecano to the drop, despite them beating rock-bottom Levante 3-1 at Campo de Vallecas.
First-half goals from Pablo (12′) and Jozabed (23′) gave Los Franjirrojos hope of avoiding relegation, before Verza pulled one back for the visitors from the penalty spot on the hour mark.
Miku’s 74th-minite goal wrapped up the win for the hosts to halt a three-match losing streak, but it was not enough to save them from going down as Paco Jemez’s side ended 18th in the standings, one point adrift of safety.
Elsewhere, Getafe joined Rayo and Les Granotes in taking the plunge to the second tier of Spanish football after they lost 2-1 to Real Betis at Benito Villamarin.
After a goalless first half, the hosts took the lead through German Pezzella on 56 minutes and a penalty from Ruben Castro 17 minutes later doubled their advantage, while Alvaro Medran halved the deficit six minutes from time.
The Azulones ended 19th, failing to secure their safety by three points, with Betis clinching 10th and a top-half finish.
Meanwhile, Espanyol improved on last season’s 15th-placed finish by two positions after they ran out 4-2 victors over Eibar at Cornella-El Prat.
A brace apiece from Gerard Moreno (13′, 76′) and Marco Asensio (32′, 66′) gave the hosts a comfortable win, with Borja (57′ pen) and Sergi Enrich (90′) getting on the scoresheet for the 14th-placed Armeros, who finished two spots lower than last term.
Earlier in the day, Malaga brought their campaign to a close with a convincing 4-1 victory over Las Palmas at La Rosaleda.
A penalty from Charles in first-half stoppage time gave the hosts a 2-1 lead at the break after Duje Cop’s 26th-minute opener had been cancelled out by Los Amarillos striker Willian Jose five minutes later.
Los Boquerones extended their lead through Christian Atsu six minutes from time and Charles completed his brace soon afterwards to wrap up the three points and keep them in eighth spot, while Quique Setien’s side finished 11th in the standings.
Malaga 4-1 Las Palmas
Espanyol 4-2 Eibar
Rayo Vallecano 3-1 Levante
Real Betis 2-1 Getafe
Sporting Gijon 2-0 Villarreal