Gerard Moreno struck deep in stoppage-time to give Espanyol a dramatic 1-0 win over Real Madrid at RCDE Stadium.
A much-changed Real Madrid, with Cristiano Ronaldo, left out of the squad, looked to have done enough to labour to a share of the points.
However, with more than two minutes of added time played, Espanyol broke clear and Moreno crashed the ball past Keylor Navas to give the Barcelona club a first win over Real Madrid since 2007.
Los Blancos were looking to build on a seven-match unbeaten run
in LaLiga, which had seen them pick up six victories and score 30 goals.
Head coach Zinedine Zidane opted to make five changes from Sunday’s 4-0 home win over Alaves, with captain Sergio Ramos back from suspension.
Gareth Bale retained his place, and the Wales forward almost opened the scoring on seven minutes.
Defeat leaves Real Madrid in third place, 14 points behind leaders Barcelona, who have a game in hand and two ahead of Valencia, but having played one match more