The draw for the Copa del Rey quarter-finals was made on Friday lunchtime, with Barcelona being paired with Real Sociedad, Real Madrid getting Celta Vigo and Atletico Madrid drawing Eibar, while second division side Alcorcon are set to face newly-promoted Alaves.
Luis Enrique's side will face a tricky trip to Anoeta, where they have not won since 2007, although the Blaugrana do have the positive of having the second leg at home.
They needed to pull off a comeback in the last round after a disappointing first leg in the Basque Country and could have to do likewise.
For the two big Madrid teams, they both have home first legs, before respective trips to the north of Spain, while capital city minnows Alcorcon will take on Alaves in their first ever cup quarter-final.
The first legs of each tie will be played on January 18 and 19, with the return matches taking place one week later, also on the Wednesday and Thursday.
Full draw:
Real Sociedad v Barcelona
Alcorcon v Alaves
Atletico Madrid v Eibar
Real Madrid v Celta Vigo