Real Madrid will face either CD Guadalajara or the winner of the AFC Champions League in the semi-finals of the 2018 Club World Cup.
Madrid, who are looking to win the competiton for a third successive season, will travel to United Arab Emirates in December to contest the competition between the various continental champions from around the globe.
And having missed out on the European Super Cup, it will present Julen Lopetegui with the opportunity to win his first silverware since taking over as coach at Santiago Bernabeu.
Following Tuesday's draw, Madrid know they will kick-off their campaign on December 19, with a potential final date set for December 22.
The tournament will kick-off with UAE Pro-League winners Al Ain - who qualify as the representative of the host nation - taking on OFC Champions League winners, Team Wellington.
Next Match
The winner of that tie will take on the CAF Champions League winners - with the African tournament currently at the quarter-final stage ahead of the final in November - with a semi-final against the Copa Libertadores winners the prize for the victors.
On Madrid's side of the draw, CONCACAF champions Guadalajara's prize for beating Toronto FC in April's final is a match against the eventual representative from Asia, the identity of whom will be decided in November's final.
Since the inaugural tournament in 2000, Real Madrid have won the title on three occasions - a record they share with Liga rivals, Barcelona.
European clubs have won each of the last five competitions, with Corinthians' victory in 2012 the only occasion since 2006 that the winners have not come from UEFA.