Oscar Melendo's late goal saw Espanyol snatch a 1-0 win and inflict a first defeat on Barcelona since August, after Lionel Messi failed to score a penalty in the first leg of the Copa del Rey quarter-finals.
A dominant Barca looked as though they would have to settle for a goalless draw after Messi saw his second-half spot kick saved by Diego Lopez on Wednesday, but worse was to come for the Liga frontrunners.
Espanyol caught them on the break late on and youngster Melendo provided a neat finish for his first senior goal, inflicting a first defeat on Barca since their Supercopa de Espana losses to Real Madrid.
Barca were on top from start to finish and created more than enough chances to take a victory back to Camp Nou.
But for all their control, the first half proved particularly frustrating, as clear-cut chances were hard to come by and, when the visitors did manage to craft an opening, the opportunity was wasted or saved.
They should have taken the lead just after the hour mark when Messi stepped up from 12 yards out, but Lopez rescued Espanyol with a brilliant save and Melendo – introduced from the bench – struck two minutes from time to secure an unlikely victory for the home side.
Barcelona did not have much trouble taking control of proceedings early on, as they enjoyed a monopoly on possession.
Chances were by no means a regular occurrence, however, with an eighth-minute Sergio Busquets effort that Lopez did well to parry away being the only opportunity at either end in the first quarter of the match.
Messi eventually burst into life in the 23rd minute and managed to charge through a crowd of players to get a shot away, only for Lopez to make light work of the effort.
At the other end, Barca looked almost too comfortable and such a relaxed approach nearly cost them, as Sergi Roberto gifted possession to Gerard Moreno and the forward fired just wide of the bottom-right corner.
The best chance of the half fell to Denis Suarez just before the break, though, as the midfielder received Messi's pass in the area and shot into the side-netting.
Barca's dominance continued into the second half and a moment of Messi magic forced Lopez into action, as the Argentinian flicked the ball over his head and drilled a volley towards the bottom-right corner from 18 yards, with the goalkeeper getting down to keep it out.
Valverde's frustration brought about the introduction of Ivan Rakitic and Luis Suarez from the bench and soon after the Uruguayan's entrance, Barca won a penalty.
Roberto found his way into the Espanyol area and went down under a clumsy Esteban Granero challenge, but Lopez brilliantly denied Messi's kick, getting down to his left and tipping it wide.
3 - Lionel Messi has missed more penalties than any other La Liga player this season in all competitions (three from six attempts). Strange. pic.twitter.com/rVgz6du5nY— OptaJose (@OptaJose) January 17, 2018
In an incident that will likely result in a sanction for Espanyol, Barca goalkeeper Jasper Cillessen appeared to get caught in the face by something thrown from the stands 13 minutes from the end.
Thankfully he was fine to continue and he made a strong save to push Marco Navarro's fierce free-kick effort over.
But he was helpless a few moments from the end when Melendo latched on to Navarro's well-placed cut-back and steered a cushioned left-footed finish into the bottom-left corner, ending Barca's 29-match unbeaten run.
17 de febrero 2019
|Sanchez is far from finished at the top level, insists Solskjaer|
|Giggs: Give Man United job to Solskjaer|
|Robinson hails Morris´ ´special´ Roosters debut|
|Saint-Etienne 0 Paris Saint-Germain 1: Magical Mbappe snatches the points|
|Morris: I showed Roosters team-mates what I can do|
|Morris´ debut hat-trick guides Roosters to World Club Challenge glory|
|Icardi did not celebrate Inter win in dressing room, says Spalletti|
|Can: No privileges at Juventus, even for Ronaldo|
|Crusaders coach Robertson signs on for two more seasons|
|20-0 farce slammed as ´insult to sport´ by Italian football chief|
|Messi makes playing for Barcelona easier - Dembele|
|Alisson: Liverpool won´t feel Van Dijk loss against Bayern|
|SPAL coach Semplici left frustrated by VAR controversy|
|Jose Mourinho open to Ligue 1 job|
|Inter 2 Sampdoria 1: Nainggolan salvages win in Icardi´s absence|
|Muguruza and Kasatkina battle their way into Dubai second round|
|Cecchinato hammers home favourite Schwartzman to win Argentina Open|
|Toulouse resist Racing fightback to reclaim top spot|
|Icardi contract talks continue despite losing Inter captaincy|
|Halep ends Van Cleemput collaboration|
|Swansea City 4 Brentford 1: James-inspired turnaround books quarter-final berth|
|Doncaster Rovers 0 Crystal Palace 2: Eagles ease into FA Cup´s last eight|
|Windies star Gayle to retire from ODIs after World Cup|
|Wenger backs Henry to bounce back|
|20-0! Seven-man crisis club Pro Piacenza thrashed in Serie C farce|
|Monfils holds off Wawrinka for Rotterdam title|
|Walker hat-trick gets Rhinos up and running|
|Ramos red card an ´occupational hazard´, says Solari|
|Dan Carter to make Racing 92 return|
|Ashton ruled out for Wales clash|
|Nuno hails cup win as ´moment of joy´|
|Marcelo v Reguilon: Real Madrid mainstay losing left-back battle|
|Marcelo is an institution - Eusebio denies targeting Real Madrid left-back|
|I´d rather surround myself with people I really like - Osaka explains coach split|
|We do not have to kill Real Madrid forever - Odriozola|
|Bristol City 0 Wolves 1: Cavaleiro repeats cup heroics|
|Blackburn Rovers 0 Middlesbrough 1: Assombalonga strengthens Boro´s play-off credentials|
|Coman restricted to light training ahead of Liverpool clash|
|Solari refuses to concede LaLiga title race is over|
|Courtois: Real Madrid could not control Girona|
|Weary Kvitova reflects on ´crushing´ start to 2019|
|Umtiti in Barcelona squad to face former club Lyon|
|It´s hard to take - Maxwell laments Stars´ stunning Big Bash defeat|
|Pogba: Manchester United emulating ´Class of 92´|
|Real Madrid 1 Girona 2: Stuani and Portu seal stunning comeback|
|Boult, Mahmudullah fined by ICC|
|Neymar Senior: No chance of PSG star facing Manchester United|
|Broad expects sledging to subside in 2019 Ashes|
|Aguero targets historic quadruple|
|Scholes backs Solskjaer for Man United job|
|Finch hails ´special´ Renegades comeback|
|Sydney FC 1 Central Coast Mariners 1: Le Fondre strike averts shock defeat|
|Fox soars in Perth final to win World Super 6|
|Williams delay start to pre-season testing|
|Renegades crowned BBL champions after stunning Stars collapse|
|What we learned from NBA All-Star Saturday|
|Kaepernick´s attorney tips Patriots to make move for QB|
|Tebow: I told Murray to follow his heart|
|Mourinho created unhealthy atmosphere – Sanchez|
|Santa Cruz defends belt against Rivera|
|Opelka, Isner set ATP Tour record at New York Open|
|Diallo soars over Shaq to win Slam Dunk contest|
|WATCH: Diallo dunks over Shaquille O´Neal|
|Silver: NBA trade requests should stay behind closed doors|
|´It´s more of an aspiration´ – LeBron clears up potential NBA ownership|
|Harris wins Three-Point contest ahead of Curry|
|Thomas leads rain-delayed Genesis Open|
|Tatum wins NBA Skills Challenge with stunning half-court shot|
|Robben: Anfield is the worst stadium|
|Valverde not nervous about Messi penalties after spot-kick miss|