There was non-stop drama on the final day of the Spanish league season as Gabi led from the front to keep Javier Aguirre's men up, while Heracles got a draw with Sporting.
The already relegated Hercules meekly bowed out of La Liga with a scoreless draw at home with mid-table Sporting Gijon. There was a sparse crowd at El Rico Perez and those who did show up did not spurn the opportunity to vent their disapproval at the downturn in the club's fortunes.
Despite the presence of strike duo David Trezeguet and Javier Portillo, the Alicante-based outfit were unable to muster a goal. Unfortunately, the game was marred as several fans invaded the playing surface after the final whistle.
If this is to be the final game in charge for Bilbao coach Joaquin Caparros, then he will bow out on a winning note. The visitors shocked Racing with two goals in as many minutes halfway during the first period and qualified automatically for next season's Europa League.
David Lopez opened the scoring after 21 minutes before moments later, a long ball over the top caught out the home defense, allowing Fernando Llorente to nip in and add a second with Racing defender Henrique guilty of particularly poor marking.
Things went from bad to worse for the home team when they were reduced to ten men. Midfielder Francis picked up a second yellow card after a poor challenge on Bilbao striker Iker Muniain. Despite their numerical disadvantage, Kennedy picked up a late consolation goal for Racing.
Real Zaragoza completed an incredible escape as it won to stay up, despite no wins in the first 10 matches. The club started the match the front foot and had two goals correctly ruled out for offside.
The visitors' persistence paid off six minutes before the break when Gabi left even Munua helpless with a stunning free-kick to give his side a priceless lead. Zaragoza made sure of its league future with a superb strike from captain Gabi on 73 minutes from just outside the penalty box to send the sizeable traveling contingent into dreamland.
Levante ensured a difficult last 10 minutes for the side from Aragon as they pulled a goal back from a free-kick. Stuani got across his marker Paolo Da Silva, which enabled him to cushion a deft header beyond Leo Franco.
In the only final day clash between two sides still involved in the relegation scrap, both teams picked up a point each to ensure survival. Getafe took an early lead thanks to a rare goal from Cata Diaz in the ninth minute. The centerhalf headed home an excellent freekick past helpless Sociedad goalkeeper Claudio Bravo. It was from a freekick that the hosts scored the equalizer. Xabi Prieto's superb delivery caused all sorts of problems, allowing Sutil to head home past Oscar Ustari on 66 minutes.
Osasuna, who finish in the top half, gained an end of season win against Champions League qualifiers Villarreal. The home side took the lead after 41 minutes with a superb long range effort from Cejudo. The former Las Palmas midfielder volleyed home from 25 yards out after an excellent turn, with Diego Lopez unable to keep the ball out despite a despairing dive.