Two-time defending champion Barcelona will play Real Sociedad in the quarterfinals of the Copa del Rey, and Real Madrid will face Celta Vigo.
Friday’s draw also pitted Atletico Madrid against Eibar, one of the newcomers to the tournament’s last eight.
Alcorcon, the only second-division club still in the competition, will face Alaves, which was promoted to the top flight this season.
The first legs will be played next week. The final is May 27.