There was mixed fortunes for the three La Liga title rivals on Wednesday on a day when Victor Valdes' Barcelona career looked to be ended.
Atletico Madrid solidified their place at the top of the table with 1-0 over Granada, while Real Madrid lost 2-1 at Sevilla.
Real's controversial 4-3 Clasico loss to arch-rivals Barcelona at the Bernabeu on Sunday saw them replaced by Atletico at the table's summit and they were unable to bounce back from that defeat.
Cristiano Ronaldo gave them a 14th-minute lead at Estadio Ramon Sanchez Pizjuan, but the deficit was overturned just a few moments later as Carlos Bacca poked the ball past Diego Lopez.
The visitors enjoyed more of the ball than their hosts in the second half, but Bacca's contribution was vital - as he netted his second with 18 minutes left to give Sevilla all three points.
The victory was Sevilla's sixth consecutive triumph in the league, moving them to within six points of fourth-placed Athletic Bilbao, while Real slip three points behind leaders Atletico, who won without playing particularly well.
Atleti struggled to break through Granada in a frustrating first half, but top scorer Diego Costa salvaged all three points after 63 minutes with his 24th Liga goal of the campaign.
Real's defeat means Atleti are a point clear of Barcelona as the title race swings between three teams.
Barcelona moved up to second, above Real, thanks to their 3-0 home win over Celta Vigo, but the victory was marred by a season-ending knee injury to goalkeeper Valdes.
The goalkeeper has already announced his intention to leave at the end of the campaign, meaning that he has played his final game in a Barcelona shirt.
He suffered a torn anterior cruciate ligament after landing awkwardly while collecting a routine ball into the box, and he is now set for surgery that also puts his FIFA World Cup participation with Spain in doubt.
Away from that incident, two goals from Neymar and one from Lionel Messi was more than enough to see off a Celta side coached by Barca legend Luis Enrique.
The day's other game saw Rayo Vallecano take a big leap towards survival as they beat another of the league's relegation contenders, Osasuna, 1-0 at home.
Rayo went into the match a point above their visitors and it looked set to end all-square at Estadio de Vallecas as proceedings entered second-half stoppage time with the scores level.
However, Jose Carlos won a late penalty after a tug from full-back Damia and forward Joaquin Larrivey converted the resulting spot-kick to win it.
|Coach: D. Simeone|
for C. Rodríguez 56'
for A. Turan 60'
for David Villa 70'
|Brannagan open to Championship loan move|
|Wenger wants to sign Mertesacker replacement|
|Ancelotti: Bayern´s transfer business done|
|Brisbane Roar sign former Danish international Kristensen|
|Verratti, Luiz missing for PSG|
|Sounders part ways with foundation coach Schmid|
|Mane turned down Manchester United for Liverpool|
|Zidane on Pogba: Until August 31, anything can happen|
|Mkhitaryan driven by father´s death|
|Inter rejected Napoli offer for Icardi, says president|
|Clichy: City fighting fit after Guardiola pizza ban|
|Everton and Burnley win as Hull are held|
|Ajax held by PAOK after Cillessen howler|
|Conte left frustrated by ´crazy´ money in transfer market|
|Neymar makes Barcelona case to Gabriel Jesus|
|Rostov comeback twice for Champions League draw with Anderlecht.|
|Arsenal defender Mertesacker set for lengthy lay-off|
|Conte not selling ´fantastic´ Matic|
|Ibrahimovic keen on MLS and Beckham´s Miami project|
|Neymar: I play for Messi, he´s the man|
|Barcelona reveal details of Andre Gomes deal|
|Suarez bullish over Barcelona prospects|
|Ajax claim Napoli keen on Milik to replace Higuain|
|Totti labels Higuain´s Juventus move ´a disaster´|
|Juventus confirm Higuain deal|
|Pato to Villarreal ´in the final stage´|
|PSG sign Lo Celso|
|Muller: Beating Dortmund will be more fun this season|
|Juventus sign Higuain from Napoli for €90m|
|Pastore: I´m like God in Paris|
|Injured Lanzini out of Olympics|
|Allegri unperturbed by Higuain fee|
|Menezes replaces Bento at Cruzeiro|
|Sporting rejected major bids from Inter and Liverpool for Joao Mario, claims father|
|Pochettino pleased by Tottenham despite Juventus defeat|
|Eriksson: Allardyce the right man for England|
|Mourinho makes United train after stepping off plane from China|
|Hazard can still match Messi, says Pedro|
|Pjanic shows there is life at Juve, with or without Pogba|
|Juventus 2 Tottenham 1: Benatia bags win for Serie A champions|
|Dembele: I am not the Bundesliga´s next superstar|
|Lyon claim €35m Arsenal offer for Lacazette rejected|
|Donnarumma dreaming of Milan captaincy as he eyes long-term stay|
|Robson: Ibrahimovic can match Van Persie´s first year at United|
|Rooney should remain England captain - Eriksson|
|Emery wants new striker at PSG|
|Santos accept Juventus bid for Gabriel|
|Eriksson expects Sweden to try and tempt Ibrahimovic out of retirement|
|Spurs signing Janssen almost quit|
|Leicester stay best for Mahrez - Ranieri|
|Allardyce to take Mourinho cue on Rooney|
|Ings ready to outdo big-money signings|
|Henderson optimistic over Liverpool campaign|
|Allardyce hardened to the challenge of England post|
|Barcelona announce record revenues for 2015-16|
|Moyes enjoys Sunderland win as Palace beat Colchester|
|Stoke complete Allen signing|
|Roma coach Spalletti warns suitors off Manolas|
|Cresswell out for up to four months with knee injury|
|Burnley fan banned by club for racist abuse|
|Dad won´t let me play at the Olympics - Larsson Sr pulls rank|
|Kostic joins Hamburg on five-year deal|
|Tevez: I´d turn down Chelsea and Napoli to stay at Boca|
|Mayoral inspired by Benzema for Wolfsburg stint|
|Allardyce straight into competitive action with England|
|Liverpool, Sevilla fined for Europa League final incidents|
|Barcelona seal Guillemenot signing as part of new Servette deal|
|Niersbach handed one-year ban over World Cup corruption|
|Chelsea and Everton ´still interested´ as Koulibaly eyes Napoli exit|
|´Still working hard´ - Balotelli trains with Liverpool kids|
|Winter breaks, long-ball football and the World Cup: Allardyce in his own words|
|Inter warn Napoli Icardi is not for sale|
|Zanetti wants Simeone back at Inter|
|Stoke snap up Sobhi|
|PSG tougher under Emery - Lucas Moura|
|Totti not ready for retirement - Pallotta|
|Confident Allardyce reveals plan for England success|
|Pochettino to discard three Tottenham players|
|Allardyce: Rooney must wait for captaincy decision|
|Aubameyang: I will only leave Dortmund for Real Madrid|
|Allegri silences questions on Pogba|
|Bruce stands by decision to quit Hull City|
|Pochettino: Not the right time for Argentina job|
|Inter yet to approach De Boer with Mancini exit rumoured|
|Ancelotti trusts me more than Guardiola - Ribery|
|Wijnaldum rejected Everton for Klopp|
|Pre-season Manchester derby cancelled|
|Coutinho excited by ´fast´ Liverpool recruits|
|Cristiano Ronaldo and Conor McGregor step into the ring together|
|Mancini coy on reports linking Icardi to Napoli|
|Nolito reveals why he chose Man City over Barcelona|
|Inter 1 Paris Saint-Germain 3: Icardi absence in defeat fuels Napoli talk|