By Simon Evans and Ossian Shine
Doha - The United States will face England and Iran in Group B at the Fifa World Cup finals while Spain will take on Germany in a clash of former winners in Group E.
Holders France will meet Denmark and Tunisia in Group D while the tournament will kick off on November 21 with hosts Qatar playing Ecuador.
For the US, the draw pits them against their former colonial rulers England and the Iranians, a country they have had long-running political disputes with.
The US faced Iran at the 1998 World Cup in France, losing 2-1 to the Gulf nation.
Infantino backs away from biennial World Cup plans
Nothing wrong with Bafana players taking selfies with Mbappe, Pogba and Co.
Orlando Pirates will use the official World Cup Qatar match ball in the Premiership
Fans sparked into a frenzy at World Cup flag raising ceremony in Qatar
World Cup chaos in Nigeria ends with death of Zambian doping officer
WATCH: Women banned from Iran football stadium
Group G was one of the toughest, pitting five-times World Cup winners Brazil against Serbia, Switzerland and Cameroon.
The draw came after a 45 minute musical and video show as Fifa president Gianni Infantino promised the event would "simply be the best tournament ever".
The decision in 2010 to hand the hosting rights to Qatar was heavily criticised and there has been intense scrutiny of the human rights situation in the country.
Qatar's Emir Sheikh Tamim bin Hamad al-Thaniwelcomed the guests who included national team coaches, World Cup-winning players and football officials all waiting to discover the group stage match-ups during a ceremony presented by British actor Idris Elba and broadcaster Reshmin Chowdhury.
The tournament will run from November 21 to December 18 - the first time soccer's top prize has been competed for in the Middle East and there was a distinct Arabian feeling to the show.
Groups for the 2022 World Cup finals in Qatar following the draw on Friday:
Group A: Qatar, Ecuador, Senegal, Netherlands
Group B: England, Iran, USA, Wales or Scotland or Ukraine
Group C: Argentina, Saudi Arabia, Mexico, Poland
Group D: France, Peru or UAE or Australia, Denmark, Tunisia
Group E: Spain, Costa Rica or New Zealand, Germany, Japan
Group F: Belgium, Canada, Morocco, Croatia
Group G: Brazil, Serbia, Switzerland, Cameroon
Group H: Portugal, Ghana, Uruguay, South Korea
Reuters