Giovani Dos Santos scored one goal and set up another to help Villarreal win 2-1 at Real Sociedad on Sunday, overtaking its rival to finish the Spanish league season in sixth place.
Villarreal, which spent last season in the second division, rose above seventh-placed Sociedad on head-to-head goal difference. Both teams had already clinched Europa League berths.
Dos Santos raced into the box before cutting back to put the ball on his left foot and curl in the 26th-minute opener.
The Mexico forward set up Ikechukwu Uche on the break in the 69th before Carlos Vela pulled one back in stoppage time.
Later, Osasuna, Valladolid, Almeria, Granada and Getafe all play to avoid relegation, with two teams destined to join the already relegated Real Betis.
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO_Sports and on Facebook at AhramOnlineSports.)