Carlos Vela's stoppage-time winner helped Real Sociedad to a 2-1 triumph over Espanyol that strengthened their UEFA Europa League push.
The last-gasp win lifted Sociedad to sixth in the Liga table, two points above Villarreal, who visit Malaga on Monday.
Fifth and sixth places earn a spot in Europe's second-tier competition and manager Jagoba Arrasate - who signed a two-year contract extension this week - will be hopeful his side can hang onto the position with less than a month of the season remaining.
They had to do it the hard way in San Sebastian on Saturday, after Jhon Cordoba turned in Diego Colotto's ball in the 23rd minute for Espanyol.
Sociedad's response was swift, although they required a slice of luck, with Manu Lanzarote's own goal nine minutes later coming after a corner.
Espanyol had plenty of chances in the second half to claim their first win in almost a month, but Sociedad held firm.
They then ramped up the pressure before the end, as Mikel Gonzalez, Haris Seferovic and Pablo Hervias all had late opportunities.
But just when it seemed they would have to settle for a point, Vela popped up, scoring with his left foot to end a neat team move and end Sociedad's three-match winless streak.
Valencia also left it late to claim a point in a 1-1 draw at struggling Osasuna.
Oriol Riera put the hosts in the lead in the 19th minute, following in after Roberto Torres' 25-yard effort was spilled by Valencia goalkeeper Vicente Guaita.
Substitute Jonas levelled for Valencia eight minutes from time, though, with his composed, angled finish extending their unbeaten run to three matches.
Saturday's other Liga fixture saw Getafe claim what could be a valuable point in a 0-0 draw at Levante.
Alexis Ruano was sent off for a second yellow card with nine minutes to play but Getafe held on, despite their numerical disadvantage, to pick up a draw.
They sit 18th and are now in the bottom three on goal difference only, although 17th-placed Real Vallodolid have a game in hand.
|24||De La Bella|
for Agirretxe 75'
for G. Castro 75'
for Canales 84'
|The Invincibles and Champions League heartbreak - the highs and lows of Wenger´s 20 years at Arsenal|
|Liverpool top, DVDs just invented and no Harry Potter - the world when Wenger joined Arsenal|
|Guardiola eyes longer City stay|
|Wenger fits England criteria ´perfectly´ - FA chief|
|Houston Dynamo 0 New York City 2: Villa brace seals routine win|
|Premier League defends tax arrangements|
|Redknapp reportedly aware of players betting on games|
|Koeman champions ´outstanding´ display despite draw|
|Everton profited from ´harsh´ refereeing, claims Delaney|
|We will get much better, Guardiola warns rivals|
|Ibrahimovic turned down €100m China deal - Raiola|
|Everton 1 Crystal Palace 1: Benteke cancels out Lukaku opener|
|Rashford looking to emulate Ronaldo at Manchester United|
|Managers given bad name by Allardyce scandal - Moyes|
|Pagliara claims he lied to Telegraph over bungs|
|Dyche excited by Arsenal challenge|
|Mazzarri wary of unleashing Success until he is fully fit|
|Moyes stands by criticism of players|
|Guardiola marvels at amazing Ryder Cup experience|
|Mathieu and Deschamps ´exchange´ gives Mangala recall|
|Retirement threat just ´erratic´ Tevez being dramatic - Joorabchian|
|Dani Alves wants Champions League glory with Juventus|
|Guardiola: Football fans can enjoy Tottenham|
|Ranieri calls for consistency from Leicester|
|Low missing out on ´dream´ player in Castro - Tuchel|
|Mata: I never had problems with Mourinho|
|Conte wants failures to motivate Chelsea|
|Pochettino rules out ´impossible´ England switch|
|Emery pleased with Ben Arfa attitude|
|Gundogan returns for Germany after lengthy absence|
|Terry out again as Chelsea prepare for Hull|
|Hasselbaink refutes corruption allegations|
|Robben to start against Cologne, suggests Ancelotti|
|Prolific Callejon called into Spain squad|
|Hull City offer ´keeps changing´ - Phelan|
|Krueger: Black allegations do not directly affect Southampton|
|Wenger optimistic over Coquelin recovery|
|Hughes focused after Mourinho backing|
|Wenger open to England job|
|Klopp eyes retirement before 60|
|Wenger the pioneer battles on within his own legacy|
|Lukaku: I am not on Suarez´s level yet|
|Ibrahimovic is tremendous even if he does not score - Mourinho|
|CONCACAF Champions League Review: Olimpia, Honduras Progreso claim key wins|
|Astra expected hungover Roma - Spalletti|
|United fixture list a ´poisoned gift´ - Mourinho|
|Ronaldo back for ´stronger´ Portugal|
|Dembele can be next Drogba - Rodgers|
|Mourinho wanted Pogba at Chelsea, says Raiola|
|Puel pleased with ´good point´ in Israel|
|Mourinho not ´over the moon´ with United wins|
|Southampton investigating Eric Black allegations|
|Rodgers: Celtic would challenge at the top in England|
|Ibrahimovic expects more from United|
|Manchester United 1 Zorya 0: Ibrahimovic header earns Mourinho´s men narrow win|
|De Boer blasts Inter for lack of focus|
|Zarate reveals message to ill wife after goalscoring return|
|Raffael suffers fresh injury setback|
|Hapoel Be´er Sheva 0 Southampton 0: Saints´ winning run comes to an end|
|Sparta Prague 3 Inter 1: De Boer´s side humbled in Europa League again|
|Police to review corruption allegations after Telegraph sting|
|Brady hails Wenger as ´possibly the best ever´ Gunners boss|
|Yacob signs new West Brom deal|
|Guidolin prioritising Swansea improvement over his future|
|Sakho outburst has been dealt with – Klopp|
|Bilic sorry for Allardyce in ´very sad´ week for English football|
|Laporte saga nears conclusion as defender earns France call-up|
|Everton are exceeding expectations – Koeman|
|Wenger could be tempted by an international offer, says ex-assistant|
|No excuses for Liverpool this time, says Klopp|
|Rashford left out of England Under-21 squad|
|Boro must pick up where they left off - Karanka|
|Matuidi could still join Juventus, says Raiola|
|Pardew anticipates battle of the Belgians|
|Legia Warsaw to face Real Madrid behind closed doors|
|England job would be the pinnacle - Pardew|
|Wright sacked by Barnsley|
|Bilic defends West Ham team night out|
|Ramsey withdrawal was Arsenal´s call - Coleman|
|LMA demand ´immediate full disclosure´ of corruption evidence|
|´My answer would be a big fat no´ - Coleman rules out taking England job|
|Leeds dismiss Cellino sting as ´non-story´|
|Gabigol, Rashford and Sanches among Golden Boy nominees|
|Keane slams Arsenal: Half their players will have gloves on soon|
|´Special´ Man City draw a career highlight, says Gordon|
|Southgate admits England situation is ´not ideal´|
|England should have gone for O´Neill, says Shilton|
|PSG´s powers of recovery impress Cavani|
|Howe ´absolutely committed´ to Bournemouth amid England links|
|Man City proved character against Celtic, says Zabaleta|
|Walcott: Sanchez partnership bodes well for Arsenal´s season|
|MLS Review: DC, Impact on track for play-offs|
|CONCACAF Champions League Review: Tigres, Dallas left waiting|
|Central Sanchez pleases Wenger|
|Barca felt Messi absence - Busquets|
|Martino knew Messi would come out of retirement|
|Shilton never convinced by Allardyce|
|Degenek replaced by Giannou for Socceroos|
|Griezmann will still take penalties - Simeone|
|Simeone proud of ´one of the best´ wins|
|Godin suffers sprained ankle ligament|
|West Ham receive positive news over injured duo|
|Robson: Four wins for Southgate and he´s an England contender|
|Gunes rues Besiktas´ inability to see off Dynamo|
|Sarri: Late goals leave bitter taste|
|Borussia Monchengladbach were exceptional against Barcelona, feels Schubert|
|PSG must be patient, says Emery|
|Celtic are lucky to have Dembele - Rodgers|
|I´m completely focused on Arsenal, insists Wenger amid England talk|