Real Sociedad and Levante are returning to the Primera Liga.
A 2-0 home win over Celta Vigo was enough to ensure that Real Sociedad finish as Segunda champions and ends their three year exile from Spain's top flight.
Levante won 3-1 at home to bottom side Castellon to guarantee that they participate in the Primera for just the sixth season in their history and the first time since 2007-08.
The final promotion place is still up for grabs with Levante's derby rivals Hercules and Real Betis locked on 68 points going into the final round.