Real Madrid suffered a humiliating 2-1 home defeat by Leganes on Wednesday to exit the King’s Cup at the quarter-final stage on away goals.
A much-changed Real side, missing the likes of Cristiano Ronaldo and Gareth Bale, held a 1-0 advantage from the first leg.
But their troubled season hit a new low as they were outplayed by a team lying 13th in La Liga.
Leganes started brightly and Claudio Beauvue sent a free kick against the post in the opening exchanges, and the visitors were deservedly level on aggregate after half an hour.
A mishap between Achraf Hakimi and Nacho allowed Javier Eraso the space to produce a stunning finish from outside the box.
Beauvue sent a volley into the side netting on the stroke of half-time as a shell-shocked Real were jeered off the pitch at the break.
That appeared to bring about a reaction from the home side and Karim Benzema produced a neat finish from an acute angle immediately after the restart.
This put Zinedine Zidane’s men ahead on aggregate.
Leganes centre-back Dimitris Siovas missed a gilt-edged chance as he headed back across the six-yard box with the goal gaping.
But moments later Gabriel Pires made no mistake as he thumped home a header to put Leganes through on away goals.
They joined Valencia, who defeated last season’s finalists Alaves on penalties earlier on Wednesday, and Sevilla, who knocked out Atletico Madrid on Tuesday, in the draw for the last four.
League leaders FC Barcelona host Espanyol on Thursday, trailing 1-0 from the first leg in the last quarter-final fixture.