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).
|De Jong an ´important addition´ at Barca, says Valverde|
|´Better outcome than we originally feared´ – Agent on Anthony Davis injury|
|Pacers sweating on Oladipo injury after Indiana star leaves on stretcher|
|De Jong: I spoke to PSG and City before signing for Barca|
|Guardiola wants finals habit at Man City|
|Lakers star LeBron won´t face Timberwolves|
|Valverde doesn´t regret resting Messi despite Barcelona loss|
|In my heart and in my prayers - Ben Yedder pays tribute to missing Sala|
|Real Madrid reclaim world´s highest-earning club title from Manchester United|
|Messi absence no excuse for Barcelona loss, says Suarez|
|Humble Higuain excited by Sarri reunion|
|He must not come and cry after – Goncalves unapologetic over Neymar injury|
|Serie A record-breaker under Sarri - the Opta numbers behind new Chelsea striker Higuain|
|PSG boss Tuchel ´worried´ after Neymar sent to hospital with another foot injury|
|Coles commits to New Zealand and Hurricanes until 2021|
|Guardiola praises City mentality on ´dangerous´ Burton pitch|
|England won ´attritional´ battle, says Anderson after latest landmark|
|AEK, Brose Bamberg secure last-16 spots|
|Sevilla 2 Barcelona 0: Resting Messi backfires for Copa del Rey holders|
|Sarri: Chelsea players agree with me on motivation comments|
|Morata asked to leave Chelsea a month ago, says Sarri|
|Paris Saint-Germain 2 Strasbourg 0: Neymar suffers injury scare in Coupe victory|
|Anderson´s four-wicket haul rocks Windies|
|Burton Albion 0 Manchester City 1 (0-10 agg): Holders coast through to clinch Wembley return|
|PSG´s Neymar hobbles off in Coupe de France clash|
|De Ligt bored of Ajax departure rumours|
|Piatek completes AC Milan move after Higuain exit|
|Super Bowl LIII: Rams RBs v Patriots RBs|
|Chelsea seal Higuain loan|
|Ismaily kicked out of CAF Champions League after fans throw stones, bottles|
|England star Itoje pens new Saracens deal|
|Palace keeper Hennessey charged over Instagram post|
|Chelsea warn supporters over anti-Semitic chanting ahead of Tottenham EFL Cup tie|
|Joshua primed to make call on next opponent|
|Super Bowl LIII: Brady v Goff|
|Sala search suspended as Cardiff chairman confirms club wanted different travel arrangements|
|Cruyff, Koeman, Kluivert - De Jong following pantheon of Dutch Barca greats|
|Sarfraz apologises for comments picked up by stump mic|
|Djokovic: Pouille deserves top-10 spot|
|Hazard must be more demanding if he wants to leave Chelsea, says Ballack|
|Celtics´ Kyrie Irving to sit out Cavs game with flu-like symptoms|
|Barcelona seal €86m De Jong deal|
|Vietnam v Japan: Moriyasu happy to keep doing just enough|
|Hendricks, De Kock and Steyn join up with Proteas squad|
|Lorenzo excited for ´new level´ at Repsol Honda|
|Fernando replaces injured Pradeep in Sri Lanka squad|
|China v Iran: Queiroz wants to exorcise 2015 quarter-final|
|Balotelli joins Marseille until the end of the season|
|Emery gives Monchi ringing endorsement amid Arsenal sporting director links|
|Larry Fitzgerald returning to Cardinals on one-year deal|
|Watson absence ´an opportunity´ for Scotland hopefuls, says Townsend|
|Pochettino open to new signings but Janssen to remain a Spurs outcast|
|´No trace´ of aircraft so far in Sala search|
|Pochettino will not judge Sarri for criticising Chelsea players|
|From front row to four in a row - Best takes on Farrell at Connect 4|
|Hazard an individual, not a leader - Sarri urges Chelsea star to do more|
|Broad left out of England team for first Test|
|Higuain set to sign for Chelsea but won´t face Tottenham – Sarri|
|McGillvary injury blow for Giants|
|Solari praises Marcelo amid exit rumours|
|A-League Review: Joy and pain for De Jong as Sydney close gap|
|Halfpenny, Davies and Williams set to miss France clash|
|India to rest Kohli from back end of New Zealand tour|
|The hand is good - Farrell expects to be fit to face Ireland|
|Martinez leaves Arsenal for Reading loan|
|Beckham becomes Salford City shareholder|
|Maradona hopes Sala will be found alive|
|Djokovic will not discuss potential Nadal showdown yet|
|A Federer-Nadal double? Even historic scalps may not be enough for Tsitsipas|
|Raonic to assess knee injury, hopes to avoid surgery|