Hosts Germany will face Scotland in the opening match of Euro 2024 in Munich while defending champions Italy have been drawn in the same group as Spain.
The Germans, three-times winners, will kick off the one-month tournament in Munich on June 14, with the final on July 14 in Berlin's Olympic stadium.
The draw was held on Saturday at the Elbphilharmonie concert hall in Hamburg, one of the 10 host cities of the tournament.
Germany will also face Hungary, who came through the qualifying campaign unbeaten, and Switzerland in group A.
"I am optimistic that if we do some things in the coming few months then we will play a good Euro. The first game also has a special kind of pressure," said Rudi Voller, Germany's national team director.
Italy face a tough task in defending their title, drawn in group B with Spain, Croatia and Albania.
Italy defeated Spain on penalties in the semi-final on their way to winning Euro 2020, but lost 4-0 to the Spanish in the 2012 final. Croatia reached the semi-final stage of the last World Cup.
France and the Netherlands will meet again after coming through the qualifying in the same group, drawn in group D alongside Austria and the playoff A winners.
France, who won both games against the Dutch on their way to topping the qualifying group, kick off their Euro 2024 campaign against Austria in Dusseldorf.
The Netherlands must wait for the playoffs in March to find out who their opening opponents will be - Poland, Wales, Finland or Estonia.
England, runners-up at Euro 2020, are in group C alongside Denmark, Slovenia and Serbia. England, who needed extra time to see off Denmark in the 2020 semi-finals, start the tournament against Serbia.
In group E, Belgium face Romania, Slovakia and the winners of playoff B - Israel, Bosnia, Ukraine or Iceland.
Portugal are in group F, alongside Turkey, Czech Republic and the playoff C winners - one of Georgia, Greece, Kazakhstan or Luxembourg.
The top two in each of the six Euro 2024 groups proceed to the round of 16 along with the four best third-placed finishers.
Australian Associated Press