The draw for the first and the second round was held on 22 July 2016 at 13:00 CEST in La Ciudad del Fútbol, RFEF headquarters, in Las Rozas, Madrid.
[3] The draw for the Round of 32 was held on 14 October 2016, in La Ciudad del Fútbol.
In this round, all La Liga teams entered the competition.
[4] Round of 32 pairings were as follows: the six remaining teams participating in the 2016–17 Segunda División B and Tercera División faced the 2016–17 La Liga teams which qualified for European competitions.
This rule will also be applied in the Round of 16, but not for the Quarter-finals and Semi-finals, in which the order of legs will be based on the luck of the draw.