Germany needed just a draw with Spain to qualify from their Nations League group, but they were resoundingly beaten in Seville.
Ferran Torres scored a hat-trick as Spain secured a place at next year’s Nations League Finals with a 6-0 demolition of Germany on Tuesday.
Last year, Spain failed to advance to the Final Four after conceding late in a match against Croatia.
Alvaro Morata broke the deadlock in 17th minute with a header into the top of the net off a corner kick taken by Fabian Ruiz, who came off the bench after an early injury to Sergio Canales.
Ferran Torres doubled the lead in 33rd with a shot from close range after Dani Olmo’s header ricocheted off the crossbar, and 5 minutes later it was Rodri’s header off a corner that gave the hosts a 3-0 halftime lead.
Torres added other two in 55th and 71st minutes to complete his hat-trick after other fast counterattacks by the hosts, and Mikel Oyarzabal closed the scoring in 89th.