The third round of this season’s Copa del Rey will see Real Madrid away at fourth division side Deportiva Minera.
Minera progressed after eliminating Alaves on penalties and will now host the LaLiga champions at their 2,000-seater stadium.
Barcelona take on UD Barbastro, who also compete in the fourth tier of Spanish football and dumped out Espanyol last Thursday.
As two of the four teams competing in the Spanish Supercopa next month, Madrid and Barça only entered the competition at the third round stage, along with holders Athletic Club and Mallorca.
Athletic travel to UD Logroñés, while Mallorca will are away at Pontevedra, with the ties due to be played in January.
Copa del Rey third round: Real Madrid, Barcelona get opponents