The draw for the Copa del Rey quarter-final was conducted on Friday.
Barcelona will play Athletic Club for a place in the last four.
Xavi’s men came from a goal down to see off Unionistas de Salamanca 3-1 on Thursday.
The 23-time Copa winners Athletic won 2-0 against Alavés to progress.
Atlético Madrid, who sent Real Madrid packing, will face Sevilla.
La Liga leaders Girona are away at Mallorca and three-time finalists Celta Vigo, will host Real Sociedad.
The quarterfinal ties will be played as single games that will be played on January 23, 24, and 25.