Barcelona routed third-tier side Hospitalet 10-0 over two legs to advance, while Madrid easily overcame another minnow in Ponferradina.
Third-tier team Mirandes, which eliminated Villarreal, plays Racing Santander while Albacete, which knocked Atletico Madrid out, plays 23-time champion Athletic Bilbao.
In other matchups, it’s: Valencia vs. Sevilla; Cordoba vs. Espanyol; Alcorcon vs. Levante; and Real Sociedad vs. Mallorca.
The first-leg matches are scheduled for the first week of January.
(For more sports news and updates, follow Ahram Online sports on Twitter: @AO Sports)