Barcelona's La Liga title chances were dashed as Angel Lafita's double gave Getafe a shock 2-2 draw at Camp Nou on Saturday.
Lafita – who initially cancelled out Lionel Messi's first-half strike – headed in a dramatic leveller in the 92nd minute to give Cosmin Contra's side a well-earned point.
Barcelona are now three points behind leaders Atletico Madrid, who have a game in hand on them, with just two fixtures to play.
At the other end of the table, the draw could prove crucial in Getafe's fight against relegation, with the draw moving them up to 16th and three points clear of safety.
The hosts controlled possession, as expected, but were never at their fluent best and eventually paid the price in dramatic circumstances.
They did look set for victory, however, when Alexis Sanchez scored his 18th league goal of the season with 23 minutes remaining.
But Lafita took advantage of some terrible marking to nod in a late equaliser and stun the home crowd.
Barcelona paid tribute to former coach Tito Vilanova, with a minute's silence held before the first match at the Camp Nou since the 45-year-old's passing.
The hosts also wore commemorative shirts that had words translating to 'Tito – Forever Eternal' emblazoned on them.
Both sides were slow to get going until Messi's 23rd-minute opener, which came after Dani Alves charged down the right.
His cut-back was met at full pace by the Argentina star, who side-footed a clever finish into the top-left corner from 12 yards.
Barca's lead lasted just 14 minutes, though, as Lafita's outstanding finish restored parity.
An unorthodox lobbed free-kick unsettled the Barcelona defence and Lafita brought the ball down, held off the attention of Pedro and then lashed a shot across goalkeeper Jose Pinto and into the left corner.
The goal was initially ruled out by the linesman, who appeared to suggest that Lafita had handled the ball, but referee Jose Teixeira intervened and the decision was overruled, as the visitors went to the break on level terms after Alexis wasted a late chance.
Alexis was denied by the crossbar early in the second half, despite failing to meet Alves' swinging cross from the right with his head, almost scoring with his shoulder after significant pressure from defender Rafa.
The chances kept coming for Barca, as Pedro was denied by Getafe goalkeeper Julio Cesar after an excellent dribbling run from Messi, and their persistence was eventually rewarded in the 67th minute.
The goal followed a neat team move, with substitute Cesc Fabregas' ball finding Pedro, and although his shot was blocked, Alexis was on hand to fire the rebound in with his left foot.
Fabregas and Alves had further opportunities to extend Barca's lead, before Messi lobbed onto the roof of the net, while at the other end, Pablo Sarabia was guilty of missing a great chance with 10 minutes left.
With Barca left vulnerable after a quick Getafe counter-attack, Sarabia could only fire a volley straight at Pinto.
But it mattered little, as Lafita's late effort boosted their survival hopes and shattered Barcelona dreams.
|Coach: G. Martino|
for J. Mascherano 66'
for Xavi 87'
for Pedro 90+1'
|Chaplow suspended two games for verbal abuse, denies homophobia|
|Eduardo farewells Dinamo Zagreb amid Chelsea speculation|
|Zidane shoud give James more respect - Asprilla|
|Solo suspended from USA women´s team for six months|
|Guardiola understands fans unhappiness over Hart situation|
|Burnley and Middlesbrough sent packing from League Cup|
|Coleman baffled by Ramsey´s treatment at Arsenal|
|Six of the best for Gladbach as Rostov rout Ajax|
|Leicester face Chelsea, Northampton host United in League Cup third round|
|Cillessen set to fly out to Barca to complete move|
|Guardiola hails ´legend´ Hart as Bravo wait in the wings|
|Emotional Hart edges towards City exit|
|Manchester City 1 Steaua Bucharest 0 (6-0 agg): City ease through amid Hart-felt goodbyes|
|Ronaldo working hard for Madrid return|
|Pique warns of European Super League dangers|
|AFC Champions League: Damjanovic inspires Seoul, Wanderley puts Al Nasr in charge|
|Rauball re-elected as German league president|
|Cillessen returns for Ajax despite Barcelona talk|
|Surgery for Pereira after De Rossi horror challenge|
|Hart set for City farewell against Steaua|
|CAF Champions League Review: Wydad draw at ZESCO to earn top spot|
|Retiring Keane in Republic of Ireland squad for final time|
|Sion in talks to sign Liverpool outcast Balotelli, claims club president|
|Athletic´s Laporte not distracted by Barcelona visit|
|Keane announces international retirement|
|Clarke named FA chairman|
|Neuer: Schweinsteiger remains one of world´s best|
|Bielsa would call me before coming to Marseille - Passi|
|Watford bring in Janmaat from Newcastle|
|FIFA opens adjudicatory proceedings against disgraced African football officials|
|European Super League could cause ´war´|
|Sampdoria pounce for Praet|
|Zaza agent confirms Napoli talks but rules out loan move|
|No Grigg in Northern Ireland´s World Cup qualifying squad|
|Cahill reflects on ´amazing´ Melbourne City debut|
|Europa League must take priority, Recoba tells Inter|
|Saint-Etienne swoop for Saivet and Veretout|
|Ronaldo: Pepe was the best player at the Euros, not Griezmann|
|Schweinsteiger: Manchester United my last club in Europe|
|Dante sees Nice as a positive move|
|Pique: Barcelona by far the best in Spain|
|Pique backs Stones for success under Pep|
|Coleman dismisses Premier League talk|
|Spurs want Calhanoglu, claims agent|
|Bony an ´option´ for Bilic|
|Leverkusen cannot challenge Bayern, says Ballack|
|Pallotta blasts ´disgusting´ referee after Roma defeat|
|Badstuber taking his time after injury nightmare|
|Conte: Terry return between him and Allardyce|
|We beat Bayern to Dembele - Watzke|
|Wanderers bring back Bulut|
|Moyes rules out Kone exit|
|CONCACAF Champions League Review: Whitecaps, Pachuca win big|
|Bale: I´ll never forget this year|
|Griezmann: I deserve Best Player in Europe Award|
|No surgery for Ayew as West Ham target December return|
|Villarreal did all they could to make it through - Escriba|
|Spalletti rues lack of Roma discipline|
|Conte: Chelsea must learn to kill matches|
|Watford and West Brom crash out of League Cup|
|My longest 90 minutes as a coach - Rodgers|
|AFC Champions League: Goalless draws leave quarter-finals on a knife edge|
|Klopp hopeful over Can injury|
|Champions League play-offs: Nine-man Roma crash out as Monaco edge Villarreal|
|Henderson hails ´outstanding´ Mane after Burton thrashing|
|Chelsea 3 Bristol Rovers 2: Conte´s side survive scare thanks to Batshuayi double|
|Hapoel Be´er Sheva 2 Celtic 0 (4-5 agg): Visitors survive Israeli scare|
|Burton Albion 0 Liverpool 5: Sturridge at the double in Reds rout|
|Leverkusen sign Austria star Dragovic|
|Sakho in the clear as WADA opt against appeal|
|Enyimba 3 Mamelodi Sundowns 1: Udoh brace secures CAF Champions League win|
|Pulisic and Ramos on target as Dortmund wrap up Bundesliga preparations|
|Calleri hoping for Tevez advice|
|Defour hoping for Belgium recall|
|Alaba warns against complacency as Bayern begin Bundesliga defence|
|Bravo arrives in Manchester ahead of City move|
|Dyche backs Gray after striker´s apology for homophobic tweets|
|Gray charged by FA over homophobic tweets|
|Pique: Olympic gold proves Neymar is one of world´s best|
|Marin makes Olympiacos move|
|Zidane arrival the catalyst for one of my best seasons - Ronaldo|
|Moyes ´worried´ about Mannone elbow injury|
|Sidibe rejected Arsenal over playing-time fears|
|Guardiola: Toure could feature against Steaua|
|Hernandez out for two weeks after falling down stairs|
|Bravo nearing City move, admits Guardiola|
|Ballack impressed by Dortmund signings but still backing Bayern|
|Lucescu questions De Boer tactics|
|Milan reject Chelsea bid for Romagnoli|
|Dortmund know how to treat Gotze - Ballack|
|Shevchenko: Bacca must improve consistency|
|´If you heed 100 idiots you will go crazy´ - Bauza on Messi return|
|Valdano relieved over Messi U-turn|
|Nordfeldt in line for loan move after signing fresh Swans deal|
|Dante joins Nice from Wolfsburg|
|De Boer expects fierce fight for Barca number-one spot|
|Newell´s confident over Messi return|
|Stoke confirm Jones interest|
|MLS ´attractive´ to Rooney - Timbers owner|
|Burke re-signs with West Ham|
|Sassuolo rejected Balotelli - CEO|
|Valencia coach Ayestaran rules out Mustafi sale|
|Allardyce plans Guardiola talks over Hart|
|Cahill warns rivals over City attack|
|Allardyce open to Terry England return|
|Drogba dismisses Villa rumours|
|Tuchel pleased despite Dortmund wastefulness|