Manchester City winger Ferran Torres scored his first career hat-trick as Spain inflicted Germany's heaviest competitive defeat and joined France in the four-team Nations League finals.
In a repeat of the Euro 2008 final, former Chelsea forward Alvaro Morata headed in Spain's first goal, before Torres volleyed home emphatically.
Rodri made it three with a guided header, and Torres slotted in a fourth before curling home the fifth.
Mikel Oyarzabal's tap-in made it 6-0.
Spain and France will be joined by either Belgium or Denmark from Group A2 and Italy, the Netherlands or Poland from Group A1.
Summer bargain Torres shines

It was a game that Spain dominated from the off - having 70% possession and 23 shots - but it was 20-year-old Torres who stole the show.
His fast, intelligent movement and eye for a goal has impressed in the opening weeks of the season, and his performance here strengthened the idea that Manchester City may have got a bargain after only paying an initial £20m for his services.
His raw pace and trickery set up an incorrectly disallowed Morata goal, before he showed composure to set himself and volley home his first.
His second again demonstrated excellent technique, as he controlled a cross that was behind him before slotting underneath Manuel Neuer.
He saved the best for last as he superbly curled home from the edge of the area to take his international tally to four goals.
His performance will have delighted fans in the blue half of Manchester, with the man he replaced at City, Leroy Sane, completely ineffective for the Germans.
The only setbacks on a fantastic night for Spain were muscular injuries to captain Sergio Ramos and Sergio Canales. But manager Luis Enrique said both injuries were "of very little importance", adding "it is not pleasant for the clubs".
Low has major work to do

Going into the game, Germany were unbeaten in 2020, and in control of Group A4.
They needed to avoid defeat to reach the finals and while that situation can sometimes lead to confusion about how to play, they were below par throughout.
They failed to register a single shot on target, with Serge Gnabry coming closest when his 22-yard effort rebounded off the bar in the dying moments.
It was a night filled with questionable tactical decisions, as Chelsea forward Timo Werner played wide left, with Gnabry through the middle in an uninspiring first-half performance.
Manager Joachim Low was given the chance to rebuild the side after elimination from the 2018 World Cup in the group stages, but with his side ranked 13th in the world, this performance suggests he has significant work to do before next year's rearranged European Championship.
Low said he didn't "know what really happened", but said he still trusts in the players.
He added: "Today we saw that we are not as far ahead in our development as we had thought and expected after the last games."
Latest Stories
-
From Africa to Silicon Valley: How David Amuquandoh is changing how the world builds financial products
8 minutes -
Photos: Day one of AMA’s decongestion exercise in Accra
19 minutes -
Registrar of Companies assures support for companies on verge of insolvency
46 minutes -
Fear grips Nkawkaw Zongo as three men are gunned down in cold blood
50 minutes -
Pass Conduct of Public Officers Bill to ensure ethical governance – Ex-CHRAJ boss Anna Bossman urges
53 minutes -
KNUST partners herbal medicine practitioners to improve standards for global market competitiveness
56 minutes -
World leaders pledge over $170m to WHO at Geneva Assembly
1 hour -
WHO Member States adopt pandemic agreement to strengthen global health security
1 hour -
Producer inflation tumbles to 18.5% in April 2025 – GSS
1 hour -
Ghana Cedi’s strength, falling inflation defy global economic unease
1 hour -
Lands Commission outlines measures to decentralise operations at district level
2 hours -
I’m optimistic Black Stars will get better – Winfried Schäfer
2 hours -
2025 Unity Cup: Nigeria announce squad for four-nation tournament
2 hours -
Ukrainian ex-top official shot dead outside Madrid school
2 hours -
Ghana hosts National Finals of 24th ‘Chinese Bridge’ contest in Cape Coast
2 hours