England have been drawn in the same group as Italy - the team that beat them in the Euro 2020 final - in qualifying for Euro 2024 in Germany.
Ukraine, North Macedonia and Malta are the other teams in Group C.
Scotland will be in Group A along with Spain, Norway, Georgia and Cyprus.
Wales will face Croatia, Armenia, Turkey and Latvia in Group D, while Northern Ireland are joined by Denmark, Finland, Slovenia, Kazakhstan and San Marino in Group H.
The Republic of Ireland face a tough task as they are in Group B alongside the Netherlands and France, plus Greece and Gibraltar.
At the draw in Frankfurt, there were gasps when England were pulled out to face Italy, with the Azzurri having beaten Gareth Southgate's side on penalties at Wembley to win the Euro 2020 final.
There are seven groups with five countries - and three groups with six teams in them. The four Nations League finalists - Croatia, the Netherlands, Italy and Spain - have gone into the smaller groups.
The top two teams in each of the 10 groups qualify directly for Euro 2024.
Germany automatically qualify as hosts, while the remaining three teams will come via the Nations League play-offs.
The groups start on 23 March and end on 21 November 2023.
The groups in full
Group A: Spain, Scotland, Norway, Georgia, Cyprus
Group B: Netherlands, France, Republic of Ireland, Greece, Gibraltar
Group C: Italy, England, Ukraine, North Macedonia, Malta
Group D: Croatia, Wales, Armenia, Turkey, Latvia
Group E: Poland, Czech Rep, Albania, Faroe Islands, Moldova
Group F: Belgium, Austria, Sweden, Azerbaijan, Estonia
Group G: Hungary, Serbia, Montenegro, Bulgaria, Lithuania
Group H: Denmark, Finland, Slovenia, Kazakhstan, Northern Ireland, San Marino
Group I: Switzerland. Israel, Romania, Kosovo, Belarus, Andorra
Group J: Portugal, Bosnia and Herzegovina, Iceland, Luxembourg, Slovakia, Liechtenstein