Holland scored twice in the last five minutes to recover from two goals down and earn a 2-2 draw against relegated Germany in the Nations League to secure a spot in next year’s finals ahead of world champions France.
Virgil van Dijk struck a close-range volley in stoppage time to equalise for the visitors after Quincy Promes had cut the deficit in the 85th minute with the Germans having led through early goals from Timo Werner and Leroy Sane.
Switzerland, England and hosts Portugal had already qualified for the four-team finals in June.
The Germans, who suffered a shock first-round exit at the World Cup in June and lost a German record six times this year, are in last place in League A Group 1 behind France, who just missed out the finals, and the table-topping Dutch.
MATCH FACTS AND STATS
Germany (3-4-2-1): Neuer; Sule, Hummels, Rudiger; Kehrer, Kimmich, Kroos, Schulz; Gnabry (Muller 67), Sane (Goretzka 80); Werner (Reus 63)
Subs not used: Trapp, Leno, Ginter, Tah, Hector, Goretzka, Rudy, Havertz, Brandt
Goals: Werner 9, Sane 19
Booked: Hummels, Kroos, Kimmich
Holland XI (4-3-3): Cillessen; Tete, De Ligt, Van Dijk, Blind; De Roon, De Jong, Wijnaldum (Vilhena 60); Promes, Depay, Babel (Dilrosun 45, De Jong 66)
Subs not used: Zoet, Bizot, Ake, De Vrij, Dumfries, Van Aanholt, Strootman, Van de Beek, Rosario, Vilhena
Goals: Promes 86, Van Dijk 90