Real Madrid to host city rivals Atletico in cup quarter-finals
The pair last met in the competition in the 2012-13 final, which Atletico won 2-1.
The Spanish and European champions will be a tough assignment for Atletico, whose manager Diego Simeone is on thin ice after a difficult season so far.
His side finished last in their Champions League group and are fourth in LaLiga, having won only one of their last six games.
Barcelona were also handed a tough task in the draw, which pitted them against in-form Real Sociedad, who are third in the LaLiga standings and unbeaten since early November.
Valencia will host Athletic Bilbao and Osasuna will host Sevilla to round off the quarter-finals.
The matches take place between January 24th and 26th, with the Spanish FA to announce the schedule later on Friday.