Scotland will face Germany in the opening game of Euro 2024 after being drawn in the same group as the hosts.
Hungary and Switzerland complete Group A, while England are in Group C along with Denmark, Slovenia and Serbia.
Wales will be drawn in Group D alongside France, the Netherlands and Austria at next summer’s tournament if they qualify through the play-offs in March.
Germany take on Steve Clarke’s Scotland in the opener at the Allianz Arena in Munich on Friday, June 14.
Euro 2020 finalists England begin their campaign on June 16 against Serbia.
Defending champions Italy, who beat Gareth Southgate’s side on penalties in the 2020 final, will face three-time winners Spain, Croatia and Albania in Group B.
The Euro 2024 final will take place on July 14 at the Olympiastadion in Berlin.
Group A: Germany, Scotland, Hungary, Switzerland
Group B: Spain, Croatia, Italy, Albania
Group C: Slovenia, Denmark, Serbia, England
Group D: Play-off winners A, Netherlands, Austria, France
Group E: Belgium, Slovakia, Romania, Play-off winners B
Group F: Turkey, Play-off winners C, Portugal, Czech Republic
Play-off winners A: Poland, Estonia, Wales, Finland, Estonia
Play-off B winners: Israel, Bosnia-Herzegovina, Ukraine, Iceland
Winners of play-off C: Georgia, Greece, Kazakhstan, Luxembourg
Scotland could be ‘more confident’
Former Scotland forward James McFadden said Scotland “will be confident they can get out” of a tough Group A with three-time winners Germany.
“It’s a tough group, I’m not going to lie and say I’m happy with the group,” he told BBC Two.
“The opening game against Germany will be a great occasion and all the pressure will be on Germany to get a result and that should suit Scotland because against better sides, they tend to will do OK.”
Scotland finished bottom of their Euro 2020 group, losing to Croatia and the Czech Republic, while they played out a goalless draw with England.
McFadden added: “I think Scotland will give a good account of themselves and be a very good side because they have the experience of playing in the Euros before this group and the disappointment of those games. They want to put it right.
“The players are very confident going into this group stage.”
England ‘can’t complain’ about Group C
Southgate led England to the Euro 2020 final at Wembley, which Italy won 3-2 on penalties after a 1-1 draw.
Former Three Lions striker Alan Shearer said Southgate was “very happy” with England’s draw, with Serbia and Slovenia outside the world’s top 30, while 1992 champions Denmark are ranked 19th.
“I don’t think England can complain about that group,” Shearer said.
“I think it’s favorable when you look at some of the teams that have been drawn against each other.”
Ex-England forward Chris Sutton added that it was a “pretty soft” group for England.
Despite not being the toughest group, Southgate said all the teams in Group C were “more than capable”.
“You can look at it on paper but games are not played on paper,” he said.
‘One of the toughest groups’
If Wales are to qualify for next summer’s tournament, their first game will be against the Netherlands – winners in 1988 – in Hamburg on 16 June, before games against Austria and France, who are second in world ranking.
Robert Page’s side will face Finland in the play-off semi-finals on March 21, and if they win they will play either Poland or Estonia in the play-off final on March 26.
“This seems like one of the toughest groups out there,” Page said of Group D.
“We have a lot of work to do to get there but the rewards are there. We are all in football because we want to play against the best teams, players and managers and they certainly fall into that category.”
Phil McNulty, chief football writer
England will be very satisfied with their draw for the Euro 2024 group stage and although it looks like a tougher route for Scotland, they feel they can get through to the knockout stages.
As for Wales, if they reach Germany via the play-offs they will face a very perilous task in taking their campaign further out of the group.
England manager Gareth Southgate will ensure there is no complacency but a group containing Serbia, Denmark – who they beat in the semi-finals of Euro 2020 at Wembley – and Slovenia will certainly be in no panic for the a side currently ranked third in the latest FIFA rankings. .
Scotland got the charm of the opening game and the chance to make an immediate impact against hosts Germany.
They will start that game as underdogs but manager Steve Clarke will know that Germany are nowhere near the superpower they once were and are in transition under new coach Julian Nagelsmann.
Hungary and Switzerland are joined by the Scots, who have built a strong and quietly confident unit under Clarke’s deft guidance. This is a group that will surely give them a measure of optimism.
If Wales reach Germany they will have a difficult task as they will be included in a group with the Netherlands, World Cup runner-up France and Ralf Rangnick’s Austria. Even if they are successful in navigating the play-offs they will rank as outsiders.
If you are viewing this page in the BBC News app please click HERE to vote.