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.
26 de mayo 2018
|Liverpool chairman Werner promises Klopp transfer funds|
|Pakistan´s Babar ruled out of England series|
|Gudjohnsen tips Madrid to beat Liverpool, despite star trio|
|It does something to you - Van Dijk reveals why he joined Liverpool|
|Gleyber Torres makes history as Yankees beat Angels|
|MLS Review: LA Galaxy edge San Jose Earthquakes in California Clasico|
|Real Madrid v Liverpool: Who will win the Champions League final?|
|LeBron James saves Cavaliers from elimination|
|Peru FA president weighs in on Paolo Guerrero´s drugs ban appeal|
|Jurgen Klopp calls for ´big balls´ from Liverpool|
|Kevin Love ruled out of Game 6 for Cavaliers after concussion|
|Prescott says Cowboys don´t need top receiver|
|MLB extends Roberto Osuna´s administrative leave for third time|
|Rose shoots 64 to take Fort Worth lead|
|James Harden not worried about shooting struggles|
|Green: Spurs star Leonard wants to stay in San Antonio|
|Griezmann could help Barcelona a lot, says Umtiti|
|Moyano hat-trick helps Jaguares sink 14-man Sharks|
|Mbappe rejected Real Madrid for PSG - Monaco´s Vasilyev|
|Rovers rock Warriors as Wolves bite back to see off Hull|
|Thiem through in Lyon as Fucsovics closes in on historic first title|
25 de mayo 2018
|Hughes signs three-year Southampton deal|
|Barty suffers injury scare in Strasbourg|
|Ruthless Montpellier overpower Lyon to reach Top 14 final|
|Rabiot hits out at Deschamps criticism|
|Low: Messi more complete than Ronaldo|
|Marvellous McIlroy moves three clear at Wentworth|
|Brighton confirm deal for Deportivo striker Andone|
|No offers for Lyon captain Fekir, Aulas claims|
|Pakistan turn the screw to frustrate England at Lord´s|
|Rashid leaves Knight Riders in the shade as Sunrisers reach IPL final|
|Madrid not favourites for Champions League final - Zidane|
|Don´t compare Salah to Messi and Ronaldo, says Ramos. They´re in a different orbit!|
|Van Dijk: Liverpool is my team, Anfield is my home|
|Ronaldo at ´140 per cent´ is good enough for Zidane|
|People like to talk - Marcelo responds to misquoted Klopp|
|French Open 2018: Hopes of sensational Serena success raised by Roland Garros draw|
|Houston Rockets without Chris Paul for game six|
|Ostapenko used to life in the spotlight ahead of French Open defence|
|Red Sox designate Hanley Ramirez for assignment|
|Liverpool motivated by Europa League pain - Henderson|
|Reus relishing Favre reunion at Borussia Dortmund|
|Phenomenal Froome claims stunning Giro lead as Yates capitulates|
|Bertens, Kontaveit and Kasatkina – Can Ostapenko´s Roland Garros fairytale be matched?|
|Klopp less excited about second final appearance|
|It´s funny if two managers in the final have no clue about tactics - Klopp defends Zidane|
|Salah´s long-term potential ´not important´, says focused Klopp|
|It´s kind of unreal - Kvitova surprised by her success ahead of French Open return|
|Man United and Real Madrid favourite Beckham begs Zidane to beat Liverpool|
|Storm and Raiders snatch dramatic wins|
|Boateng desperate for ´best in the world´ Neuer to play|
|Great players have to play here - Real Madrid´s Marcelo continues Neymar courtship|
|Salah can win Ballon d´Or with Champions League triumph, says Luiz|
|Roland Garros wins ´exactly the same´ for Nadal regardless of Federer involvement|
|Rebels romp past Sunwolves, Crusaders retain top spot|
|Halep ´stronger mentally´ as she seeks first grand slam title|
|Cipriani on bench for Baa Baas clash|
|Ronaldo´s rival Salah shifts focus back to Liverpool versus Real Madrid|
|Two arrested in Kiev after clashes before Champions League final|
|Johnny Nelson leads tributes after death of Brendan Ingle|
|Batshuayi puts off Chelsea plans until after World Cup|
|Devon Smith back in Windies squad, Hamilton earns maiden call-up|
|Thiago hints at uncertain Bayern Munich future|
|Dhananjaya pulls out of Windies tour following death of father|
|I feel great - Kerr keeps faith with Warriors on the brink|
|Ronaldo: I can´t be compared with Salah|
|Buffon agent backs Paris Saint-Germain move|
|ICC confirms smart watches prohibited|
|Real Madrid v Liverpool: Champions League final in Opta numbers|
|Mane sends 300 Liverpool shirts to Senegal village for Champions League final|