The sixteen teams were drawn into four groups of four teams. The draw started with pot 1 and completed with pot 4, from where a team was drawn and assigned to the first available group in the position of their pot (i.e. position 1 for pot 1). The hosts Qatar were automatically seeded into pot 1 and assigned to position A1, while the remaining automatically qualified teams were seeded into their respective pots based on the FIFA World Rankings of April 2021 (shown in parentheses below). Syria, the lowest-ranked team that automatically qualified, were joined in pot 3 by the winners of qualification matches 1 to 3, while pot 4 contained the winners of qualification matches 4 to 7. Algeria, as the winners of the 2019 Africa Cup of Nations, were assigned to position D1.