Zinedine Zidane's Madrid survived a scare against Unionistas de Salamanca in the previous round, and they will this time visit Real Zaragoza, who are fourth in LaLiga 2.
#CopaDelRey | ¡¡¡ESTE ES EL CUADRO DE LOS OCTAVOS DE FINAL DE LA COPA DEL REY!!!— RFEF (@rfef) January 24, 2020
¿Cuál es tu emparejamiento favorito?
➡️ Los partidos se disputarán los días 28, 29 y 30 de enero.
🔴 DIRECTO | https://t.co/tP49bAAmLX#LaCopaMola 🏆 pic.twitter.com/RFlM286boy
With LaLiga sides kept apart where possible, the Blaugrana were selected in one of just two ties solely involving top-tier teams.
They will face Leganes at Camp Nou while the majority of their LaLiga rivals are away from home.
Segunda B side Cultural defeated Atletico Madrid in extra-time on Thursday, and their reward is a meeting with Valencia, who beat Barca in last season's final.
Badajoz, the only other third-tier side remaining in the competition, also have LaLiga opposition in the form of Granada.
The second all-LaLiga tie saw Real Sociedad drawn at home to Osasuna.
Copa del Rey last-16 draw in full:
Badajoz v Granada
Cultural Leonesa v Valencia
Tenerife v Athletic Bilbao
Real Zaragoza v Real Madrid
Mirandes v Sevilla
Rayo Vallecano v Villarreal
Barcelona v Leganes
Real Sociedad v Osasuna