Rayo Vallecano beat Almeria 2-0 with goals in either half to all but secure Primera Division survival.
Almeria gave their hopes of beating the drop a timely lift with a 3-0 victory over fellow-strugglers Granada on Saturday.
Barcelona beat Almeria 4-0 to secure their sixth successive league victory and further strengthen their position at the top of La Liga.
Almeria have sacked coach Juan Ignacio Martinez after slipping into the La Liga relegation places.
Atletico Madrid claimed their first away win in two months thanks to goals from Antoine Griezmann and Saul Niguez at Cordoba.
David Barral scored a hat-trick as Levante thrashed fellow strugglers Almeria 4-1.
Athletic Bilbao continued to keep the pressure on the teams above them with a deserved 2-1 victory over Almeria.
Almeria and Villarreal both failed to take their chances in a 0-0 draw which saw both teams reduced to 10 men.
Live only on
More of the games that matter on Sky Sports
Listen to the latest Premier League News
All the gossip from the morning editions
Predict six scores to win the £250,000 jackpot!
Win a trip to Barcelona with Police sunglasses