Racing Santander came from behind to claim a 3-2 victory over Xerez in an entertaining encounter at El Sardinero and move out of the Primera Division relegation zone.
Bottom club Xerez scored twice away from home for the first time this season and took the lead through Mario Bermejo after just two minutes.
But Racing hit back through Mehdi Lacen after 25 minutes and the Cantabrians took the lead shortly into the second period when Manuel Arana struck.
Xerez came back again though, when Antonito equalised halfway through the second period, only to lose out to Alex Geijo's late header eight minutes from time.
Both sides came into this match in desperate need of points.
Racing had ended a worrying four-match losing streak with an impressive 4-0 win at Espanyol last week.
But that was only the Cantabrians' second league success of the season and they remained in the drop zone ahead of this match.
Xerez, meanwhile, were even worse off, having taken a mere seven points from their opening 13 matches.
The Andalusians had lost their last three games prior to this one and coach Jose Angel Ziganda had stressed the importance of staying in touch with the pack above them in the build-up to the meeting with Racing.
Xerez had only scored five goals in the league all season before this match, and only one of those had come on the road.
And it had counted for little, coming as it did in a humiliating 5-1 defeat at Getafe.
So Ziganda must have been delighted as his side went in front after just two minutes, when Bermejo headed Momo's cross past a stagnant Fabio Coltorti to stun the home fans and hand the visitors a perfect start.
Racing came close to a leveller after 12 minutes, but Mohamed Tchite was denied by Vicente Moreno's brilliant last-ditch tackle with goalkeeper Renan Brito already beaten.
Renan then saved superbly from Tchite, who was one-on-one with the Xerez keeper.
It was all Racing now and Tchite missed two more good opportunities to level the scores, but Xerez were unable to hold out as the pressure remained relentless.
The Racing equaliser arrived after 25 minutes when Lacen lashed an unstoppable drive past Renan from the edge of the box.
The visitors almost went back in front shortly afterwards when Coltorti failed to get close to the ball, but the Swiss keeper had Christian Fernandez to thank for a goal-line clearance to deny Bermejo a second goal.
Half-time arrived with the scores even, but Racing soon went in front when Arana belted home a fierce drive from distance which gave Renan no chance.
It was harsh on Xerez, but the visitors refused to lie down and levelled the match with 22 minutes left when Antonito finished off a quick counter-attack with a rasping low drive past a helpless Coltorti.
There were chances for both sides after that, but Racing looked the most likely and duly won all three points when Geijo headed the winner from Pedro Munitis' neat left-wing cross with eight minutes left.