Scotland will kick off Euro 2024 after they were drawn to face tournament hosts Germany in Group A.
Steve Clarke's side, who sealed qualification for the finals with two matches to spare, will play in the opening match in Munich on June 14 before games against Switzerland and Hungary.
Gareth Southgate's England were drawn to face Denmark, Slovenia and Serbia in Group C.
World Cup finalists France will take on the Netherlands in Group D, having been drawn against each other in the qualifying tournament, with the two European giants joined by Austria and a play-off winner yet to be determined - possibly Wales.
European champions Italy were drawn in Group B against Spain, Croatia and Albania while Belgium, Slovakia and Romania will be up against the winners of play-off path B in Group E.
Group F is headed up by Portugal, who won all 10 of their qualifiers, alongside Turkey, the Czech Republic and the winner of play-off path C.
The draw was disrupted by what appeared to be sexual noises during the broadcast of the ceremony. UEFA is trying to establish what occurred and a statement from European footballs governing body is expected later.
Scotland lost to Germany at the group stage of Euro 92, a 2-0 defeat preventing the Scots from progressing. Scotland also faced West Germany at the finals of the 1986 World Cup, where the Germans won 2-1 en route to the final. The Germans have won the three most recent encounters.
England's opening match will be against Serbia in Gelsenkirchen. The team then move on to Frankfurt to take on Denmark, who they beat in the semi-final of Euro 2020. Their final group match will be against Slovenia in Cologne, a team England beat in their final group match at the 2010 World Cup.
EURO 2024 DRAW
Group A - Germany, Scotland, Hungary, Switzerland
Group B - Spain, Croatia, Italy, Albania
Group C - Slovenia, Denmark, Serbia, England
Group D - Netherlands, Austria, France, Play-off winner A (Poland, Wales, Finland, Estonia)
Group E - Belgium, Slovakia, Romania, Play-off winner B (Israel, Bosnia and Herzegovina, Ukraine, Iceland)
Group F - Turkey, Portugal, Czechia, Play-off winner C (Georgia, Greece, Kazakhstan, Luxembourg)