Real Madrid will face either the champions of Asia or Mexican club Guadalajara in the FIFA Club World Cup semi-finals.
FIFA made the draw on Tuesday for the seven-team tournament, which will be played from December 12-22 in Abu Dhabi, United Arab Emirates.
The Copa Libertadores champion will represent South America in the semi-finals against the African champion or the winner of a preliminary-round game between Al Ain and Oceania champion Team Wellington. Al Ain will enter as the host nation's champion, joining the six continental champions.
FIFA wants to launch a 24-team Club World Cup in 2021.