Bayern Munich will face either Al-Duhail or Al Ahly in their Club World Cup semi-final on February 8.
The competition's draw took place on Tuesday in Zurich and confirmed European champions Bayern will tackle hosts Al-Duhail or CAF Champions League holders Al Ahly.
Al-Duhail secured their qualification as hosts by winning the Qatar Stars League in 2019-20, with no Qatari side managing to win the AFC Champions League.
Egyptian giants Al Ahly won African club football's biggest prize in November and qualified for the Club World Cup for the sixth time, having last appeared in 2013, which was also Bayern's only previous appearance.
Al-Duhail received a walkover into the second round after Auckland City, who had been nominated as Oceania's representative, pulled out due to coronavirus quarantine measures implemented by authorities in their native New Zealand.
The other second-round clash drawn on Tuesday will see AFC Champions League winners Ulsan Hyundai face CONCACAF champions Tigres of Mexico, who are making their first appearance.
Tigres or Ulsan will go forward from that tie to play the Copa Libertadores champions – Santos and Palmeiras are due to face off in an all-Brazilian final of that competition on January 30.