Real Mallorca staged the perfect smash and grab raid at the Bernabeu to dump Real Madrid out of the Copa del Rey on Wednesday night.
Trailing 2-1 from the first leg of this last 16 tie, hosts Madrid dominated from the start but were stunned with seven minutes to go as Ariel Ibagaza scored with virtually Mallorca's only shot of note to seal a 3-1 aggregate triumph.
A slick Real laid siege to the Mallorca goal straight from the word go, and the hosts fashioned three good chances inside the opening six minutes.
The first saw Javier Saviola denied by Mallorca goalkeeper Miguel Moya after being put clean through, while from the resulting corner the unmarked Gonzalo Higuain saw his thunderous shot somehow blocked on the line by Borja Valero.
Two minutes later a deflected Royston Drenthe shot fell kindly to Higuain inside the box but his first-time volley flew just over the bar.
Real continued to dominate, with Julio Baptista and Guti both shooting wide from decent positions while Saviola saw two more efforts kept out by the increasingly busy Moya.
All that was in the opening 26 minutes, and it was not to get much quieter for Moya who did well to deny Higuain twice more before a totally one-sided first half somehow finished goalless.
Real coach Bernd Schuster must have been pleased with his side's overall display in the opening period, but with the team still trailing 2-1 the German opted to send on one of his big guns at half-time, with star striker Ruud van Nistelrooy replacing Saviola.
Mallorca had the first effort of the second half with a Jonas Gutierrez shot that flew high over Jerzy Dudek's crossbar, before Real re-asserted their dominance.
Van Nistelrooy saw a close-range shot saved by Moya, while Baptista screwed another chance horribly wide and Guti skimmed the crossbar from the edge of the box as Real continued to rain in shots on the Mallorca goal.
It was looking as though it was not going to be Real's night, and that proved to be the case as Mallorca shocked the home side with a late winner.
Fernando Varela launched a free-kick forward from the halfway line and Ibagaza, having sneaked in behind Fabio Cannavaro, controlled it superbly before lofting his shot over Dudek and into the net.
Mallorca will now meet Getafe, who completed a 4-0 aggregate win over Levante with a 1-0 triumph on Wednesday.
Jaime Gavilan got the only goal against the Primera Liga's bottom club.
Villarreal set up a last eight meeting with Barcelona after goals from Marcos Senna and Giuseppe Rossi, the latter in extra-time, were enough to overturn a 1-0 first-leg deficit against Recreativo Huelva.
Athletic Bilbao will meet Racing Santander after the Basque club edged out Espanyol on a penalty shoot-out.
Racing Santander beat Real Zaragoza 4-2 on the night and 5-3 on aggregate.
Valencia and Atletico Madrid complete the quarter-final line-up.
Valencia beat Real Betis 2-1 to go through 4-2 on aggregate while Atletico Madrid squeezed past Valladolid on away goals after a 1-1 draw.
Mallorca will now meet Getafe, who completed a 4-0 aggregate win over Levante with a 1-0 triumph on Wednesday.
Jaime Gavilan got the only goal against the Primera Liga's bottom club.
Villarreal set up a last eight meeting with Barcelona after goals from Marcos Senna and Giuseppe Rossi, the latter in extra-time, were enough to overturn a 1-0 first-leg deficit against Recreativo Huelva.
Barca eliminated defending champions Sevilla on Tuesday.
Athletic Bilbao will meet Racing Santander after the Basque club edged out Espanyol on a penalty shoot-out.
Racing beat Real Zaragoza 4-2 on the night and 5-3 on aggregate.
Valencia and Atletico Madrid complete the quarter-final line-up.
Valencia beat Real Betis 2-1 to go through 4-2 on aggregate while Atletico squeezed past Valladolid on away goals after a 1-1 draw on Wednesday.