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'
|Simeone ignoring Premier League rumours|
|Klopp: I like Ferguson, is that allowed?|
|Begovic claims Chelsea did not rub in Mourinho win|
|´Genius´ Ronaldo is not anxious - Zidane|
|Allegri defends Higuain´s form ahead of Napoli return|
|Wenger hopes West Ham act to avoid stadium ban|
|Bilic credits players for West Ham´s revival|
|Pardew urges concentration to combat in-form Liverpool|
|Howe wants Cherries´ away form to blossom|
|Scholl slams Golden Boy Sanches|
|Pulis signs contract extension at West Brom|
|Ballon d´Oh! Wenger highlights disdain for award with Ozil gaffe|
|Liverpool must be ´angry´ to beat teams at the bottom - Can|
|Perez blow for Arsenal with striker facing eight weeks out|
|Neymar the victim of a media campaign - Rafinha|
|Cannavaro dreams of Real Madrid job|
|Alonso lauds Klopp for embracing Liverpool culture|
|Barcelona report LaLiga chief Tebas to sports court|
|MLS Review: Late goal from Valdez sees Sounders through, Impact rout DC|
|Saul committed to Simeone and Atletico|
|Ronaldo deserves to win Ballon d´Or - Cannavaro|
|Shaw eager to earn Mourinho´s trust at United|
|Neymar playing for Barca because of Messi, says father|
|Jardim questions Falcao´s stints at United and Chelsea|
|Berardi will get Italy call when system changes - Ventura|
|Lucas Vazquez delighted by ´dream´ Madrid deal|
|Scottish FA chief backs cross-border competition|
|Dortmund need Reus - Aubameyang|
|Lamela eyeing new Spurs deal|
|Tighter Watford matches are a coincidence, says Mazzarri|
|Karanka: We saved Boro from League One|
|Police investigate homophobic leaflet at West Ham|
|Spain could recall Villa, reveals Lopetegui|
|Hughes backs Bony to break Stoke duck|
|Sarri will greet Higuain ´like a son who made him angry´|
|Robben receives Netherlands recall|
|Dyche considering Gray recall for Burnley|
|Zidane was behind one of my best seasons, says Ronaldo|
|Schweinsteiger absent from United squad photo|
|Emery emphasises Thiago Silva´s importance amid Juve links|
|Ferguson: Leicester will make deep Champions League run|
|Ranieri hails ´special´ Ballon d´Or nominations for Vardy and Mahrez|
|Emery: PSG cannot rely solely on Cavani goals|
|Mourinho can match Guardiola, insists Ferguson|
|Ferguson hails Klopp: Liverpool are strong title contenders now|
|Bayern optimistic over Lewandowski renewal|
|Zubizarreta appointment confirmed by Marseille|
|Clichy: Things will click into place for Manchester City|
|Chiellini: Juventus wanted to send a message|
|Gabigol´s time will come - De Boer|
|Ronaldo: Messi and I are not friends - but we respect each other|
|Earthquake halts play in Serie A game between Pescara and Atalanta|
|Mourinho charged over Taylor comments|
|Ronaldo: I need my haters|
|Badstuber hopeful injury woes behind him|
|Kroos did not want to be rested, insists Zidane|
|Rojo was phenomenal - Mourinho|
|Seven arrests made after West Ham - Chelsea fan clashes|
|Florenzi injury blow for Roma|
|MLS Review: Galaxy, Toronto into semis|
|Beister: Victory move surprised people|
|Bilic: Cup run will help in Premier League|
|Pjaca out for up to three weeks|
|Trophies still the focus for Guardiola|
|Mignolet wants ´fair´ Karius battle|
|Ancelotti impressed by motivated Bayern|
|West Ham ´unreservedly condemn´ crowd trouble|
|Allegri praises strike duo after win over Sampdoria|
|De Boer praises two-goal Icardi after vital win|
|Chelsea were ´unlucky´ with missed chances, insists Conte|
|Mourinho: I´ve never had fans like these|
|Nacho´s goal better than my Champions League final volley - Zidane|
|Borussia Dortmund 1 Union Berlin 1 (aet, 3-0 pens): Weidenfeller shootout heroics seal progress|
|Bilic: Crowd trouble distracts from great West Ham win|
|Kompany told me he couldn´t play anymore - Guardiola|
|Liverpool and Manchester United handed home quarter-finals|
|Inter 2 Torino 1: Icardi double alleviates pressure on De Boer|
|Manchester United 1 Manchester City 0: Mata extends Guardiola´s winless run|
|West Ham 2 Chelsea 1: Crowd trouble tarnishes Hammers´ route to quarter-finals|
|Cultural Leonesa 1 Real Madrid 7: Morata and Asensio star in BBC´s absence|
|Bayern Munich 3 Augsburg 1: Green´s first goal sends holders through|
|Juventus 4 Sampdoria 1: Rapid start sets champions on their way|
|Crafty Suarez is world´s best striker - Godin|
|Mancini: Balotelli has wasted years but can bounce back|
|Rami rejected ´risky´ PSG move|
|Neymar would have cost PSG €430m, claims father|
|Sacchi warns Bayern players over Ancelotti temper|
|Valencia ´pleased´ with RFEF bottle ruling|
|Mourinho apologises to Utd fans for Chelsea thrashing|
|Barcelona lash out at ´totally reprehensible´ RFEF comments|
|Jacob leaves Marseille amid rumours of Zubizarreta appointment|
|Lavezzi added to Argentina squad as Dybala drops out|
|Del Bosque: Mourinho had a point on Conte|
|N´Zonzi in talks over Sevilla extension|
|Allardyce successor ´will not be a mercenary´ - Glenn|
|Aubameyang like a rocket, Lewandowski perfect - Riedle|
|RFEF fines Valencia, warns Barca over bottle incident|
|Wenger tells Iwobi to improve his finishing|
|Barcelona without Mathieu for three weeks|
|Kimmich draws inspiration from Xavi|
|Vazquez signs new Madrid deal|
|Higuain the best striker in the world - Nedved|
|Wolfsburg regret De Bruyne, Perisic sales|
|Parejo slams Neymar for ´inciting´ Valencia fans|
|Gundogan predicts ´very lively´ Manchester derby|
|Luis Enrique satisfied with Supercopa workout|
|Messi could join Newell´s after World Cup - Maxi Rodriguez|
|Ibrahimovic wants United to be the boss of City|
|Schmidt on the bus as Lotte book ticket for next round|
|Pogba still adapting to Premier League, says Mourinho|
|Southgate hails influence of demoted Rooney|
|Lille ready to heap more pressure on PSG as Corchia dreams big|
|I´m among top 20 LaLiga coaches, jokes Luis Enrique|
|Brattan earns Socceroos call-up|
|Pochettino pleased with Janssen|
|Klopp never questioned Sturridge quality|
|Barcelona downed by Espanyol in Supercopa|
|Heavy Milan defeat ´just a bump in the road´ - Montella|
|Pochettino wanted Liverpool debutant sent off|
|Klopp happy to entertain as Liverpool youngsters earn their spurs|
|Leverkusen dumped out by 10-man minnows|