Real Madrid were left shell-shocked by a clever last-gasp Pablo Fornals goal as Villarreal earned a smash-and-grab 1-0 win at the Santiago Bernabeu.
LaLiga's champions largely dominated proceedings on home soil, but Villarreal snatched all three points and a first league victory at Madrid with three minutes left thanks to Fornals' exquisite chip after Enes Unal's shot was saved.
It compounded a day of utter frustration for an out-of-form Madrid, who felt they twice should have had a penalty in the first half.
Villarreal defender Alvaro Gonzalez was lucky to not face punishment for handball from a Gareth Bale header, while Cristiano Ronaldo was adamant he was fouled by Mario Gaspar on the stroke of half-time.
Referee Alberto Undiano Mallenco was unmoved on both occasions, while Madrid were further frustrated by a poor one-on-one miss by Ronaldo and some good work by Villarreal goalkeeper Sergio Asenjo.
Madrid have now won just once in five LaLiga matches and will be 19 points adrift of Barcelona if their Clasico rivals beat Real Sociedad on Sunday, while Villarreal are just one point adrift of Los Blancos in their bid to muscle in on the top four.
Isco saw an early effort blocked by Gaspar, with the Spain playmaker's tentative penalty claims for handball rightly going unheard.
Bale saw a goal ruled out after nodding in from Ronaldo's header back across goal, before Asenjo made a fine stop from Marcelo's rasping 35-yard drive.
He made an even better stop to palm Ronaldo's 25-yard dipping free-kick over the top via the crossbar, before the Portugal captain wastefully dinked over Asenjo and wide of the left post after latching onto Luka Modric's throughball.
Ronaldo went close again shortly after when he hit a stinging drive into the side-netting.
Madrid were unfortunate not to be awarded a penalty 10 minutes before half-time when Bale's header from Toni Kroos' left-wing cross was seemingly handled by Alvaro Gonzalez. And Madrid had more cause for consternation on the stroke of half-time.
Isco's teasing low cross was met by Ronaldo inside the six-yard box and saved brilliantly by Asenjo, but the forward was seemingly clipped by Gaspar when meeting the ball.
Villarreal brought Denis Cheryshev on as a half-time substitute and the former Madrid winger picked Casemiro's pocket before dragging wide from the edge of the box.
A lively start to the half saw Raphael Varane make a crucial intervention from Samu Castillejo's probing pass, while Asenjo was equal to a well-controlled Kroos volley.
Modric saw a 20-yard daisycutter well held by Asenjo, while the Croatia midfielder hit a fierce drive over the top from outside the area with 10 minutes remaining.
And Madrid were made to rue their lack of clinical edge in the 87th minute.
Villarreal launched a lightning counter-attack led by Cheryshev, who slipped in Unal and, although his shot was saved by Keylor Navas, Fornals was on hand to brilliantly clip his shot over the stranded Madrid goalkeeper to spark jubilant scenes on the away bench.
Key Opta stats:
- Real Madrid attempted 28 shots against Villarreal, the most for a team in a LaLiga game this season.
- Villarreal have won for the first time in their 18 league visits to Santiago Bernabeu (D5 L12)
- Isco has been substituted more times than any other Real Madrid player in LaLiga this season (10)
- Real Madrid have not won in five home games in LaLiga this term (D2 L3), the same as in the whole of last season (D4 L1) and more than in any other LaLiga season since 2006-07 (D4 L3).
|Liverpool loan Grujic to Cardiff|
|Mbappe: More to come from Neymar & Cavani partnership|
|Messi the greatest ever despite no World Cup win, insists Di Maria|
|Villa determined to earn place in Spain´s World Cup squad|
|Walcott swaps Arsenal for Everton|
|You even learn from Guardiola at home - Otamendi lauds Pep impact|
|Otamendi pens Man City deal to 2022|
|Neymar leads tributes to retiring Ronaldinho|
|Ronaldo must focus on playing - Zidane sidesteps exit talk|
|Zidane still an idol for James despite ´sad´ Madrid exit|
|Stoger will stay at Dortmund if ´everything fits´|
|Bordeaux´s Malcom facing disciplinary action over social media video|
|Ronaldinho retires – The greatest Brazilians to play for Barcelona|
|Athletic reward Williams with contract until 2025|
|Jones taking unlikely inspiration from City in United´s title pursuit|
|Moyes unaware of Chelsea interest in Carroll|
|Verdi wants Bologna stay amid Napoli links|
|Ronaldinho retires – A shining light of Brazil´s 2002 World Cup-winning team|
|Ronaldinho retires – a World Cup and Ballon d´Or among Brazil great´s prizes|
|World Cup glory and Bernabeu magic - Ronaldinho´s best moments for Barca and Brazil|
|Ligue 1 Review: Balotelli at the double as Payet shines and Malcom toils|
|Pato still dreaming of World Cup selection|
|FA Cup Review: Iheanacho makes VAR history, kit confusion reigns|
|2016-17 UEFA Study: PSG, Man City drive record-breaking spending|
|Conte packing in homework as Chelsea games stack up|
|2016-17 UEFA Study: Manchester United record highest revenue but largest debt|
|2016-17 UEFA Study: The headlines in transfers, wages and revenues|
|Iheanacho scores English football´s first VAR goal|
|Materazzi not surprised by Coutinho transfer fee|
|Ronaldinho retires - Brazil and Barca great plans 2018 farewell|
|Koziello swaps Nice for Cologne|
|Simeone ready to unleash Costa and Vitolo alongside Griezmann|
|Lambert ´never thought´ he would return to Premier League|
|Wenger ´very aggressive´ towards referee Dean, says FA report|
|Reported Arsenal target Malcom starts for Bordeaux vs Caen|
|Valverde not making big deal of Dembele´s latest Barca blow|
|Arsenal will have a ´hard time´ signing Malcom|
|Ronaldo and Madrid nominated for Laureus awards|
|Nantes´ Diego Carlos brands Chapron clash ´historic´|
|This is not important - Conte unconcerned if substitutions upset Hazard|
|Conte ´doesn´t think´ Chelsea have pursued Sanchez|
|Emery hints at Neymar return against Dijon|
|Mkhitaryan key to United-Sanchez deal, claims Raiola|
|Tevez: CSL spell was a holiday|
|Mignolet considering Liverpool future|
|Fred waiting for Guardiola call amid Man City speculation|
|Inter confident but patient over Rafinha|
|Giggs had counselling after Old Trafford exit|
|Neville: Mourinho would happily swap Mkhitaryan for Sanchez|
|Man United becoming Pogba´s team – Mourinho|
|Can ´talking with everyone´ but hints at Liverpool stay|
|Mourinho ´not unconfident´ Manchester United will sign Sanchez|
|Pogba warns City that United will not give up the chase|
|Assist king Pogba matches De Bruyne, Sane despite injury and suspension|
|Manchester United 3 Stoke City 0: Valencia, Martial and Lukaku trim gap at the top|
|Shaw feeling on top of his game amid United run|
|Mkhitaryan left out by Manchester United amid Arsenal talk|
|Inter secure Lopez on loan from Benfica|
|Hurst marvels at hat-trick maestro Kane|
|WATCH: Neymar nutmegging for fun in PSG training|
|Nantes´ Carlos has red card overturned after being kicked by referee|
|´Logical´ for Aubameyang to stay at Dortmund, says Stoger|
|Stupid not to - Giggs seeks Fergie´s advice upon taking Wales job|
|Suarez feared Chiellini bite would derail Barca transfer|
|Dortmund sign reported Man United target Akanji|
|Wales confirm Giggs appointment|
|Barcelona´s Dembele out for up to four weeks|
|Struggling Stoke appoint Lambert|
|Referee suspended until further notice after kicking Nantes´ Carlos|
|Coutinho´s ´deserved´ Barca move, says Figo|
|Fatigue the issue for goal-shy Chelsea - Conte|
|West Brom legend Regis dies aged 59|
|Mourinho: I don´t like feuding with managers|
|Puel confident of keeping Mahrez at Leicester|
|Valverde: Real Madrid haven´t given up on LaLiga|
|Ibrahimovic nearing end at top level – Mourinho|
|David is to keep - Mourinho wants new Man United deal for De Gea|
|Nantes president demands ban after referee kicks Carlos|
|Stoger sets out rules for Aubameyang reintegration at Dortmund|