Villarreal have won promotion back to the Primera Division.
Jonathan Pereira scored the only goal as Villarreal beat Almeria to secure promotion back to the Primera Division.
The Yellow Submarine finish the campaign in second place, behind champions Elche, while Almeria could yet join them as they go into a four-team play-off for the third promotion place.