Barcelona, Real Madrid and Atletico Madrid were among the 20 La Liga teams drawn into the Copa del Rey round of 32, each being paired with lower league opposition as per seeding rules.
Holders Barcelona have been handed a tie against Cultural Leonesa from Segunda Division B, the third tier of Spanish football. The team from Leon in north west Spain were beaten 13-2 on aggregate by Real in this round of the competition in 2016/17.
This year, Real have been drawn against Melilla, another team from Segunda Division B. The away leg of the tie will require an overseas trip as the city of Melilla is located in Spanish territory on the north coast of Africa, sharing a land border with Morocco.