Lars Stindl rescued a draw in stoppage time to extend Germany's unbeaten run to 21 matches as the world champions twice came from behind to earn a 2-2 draw with France in Cologne.
Stindl, an 83rd-minute replacement for Emre Can ensured Joachim Low's finished 2017 without tasting a single defeat, their last loss coming at the hands of France in the European Championship semi-finals last year.
That run looked like coming to an end when Alexandre Lacazette netted twice on Tuesday – the Arsenal striker profiting from Anthony Martial's brilliant footwork for his first before Kylian Mbappe created his second.
In between the Arsenal striker's brace Timo Werner levelled for the hosts as he broke the French offside trap to sweep home Mesut Ozil's pass.
But a second goal looked too much for the hosts as the game entered stoppage time, however substitute Stindl had other ideas as he fired low past Steve Mandanda just 10 minutes after coming on.
Low will hope to see better defending when his side face Spain and Brazil before they begin their World Cup defence in Russia, but their battling spirit will give the coach plenty of encouragement.
A Germany side showing six changes from their draw with England took time to settle and that allowed France to have the better of the opening exchanges, although they initially failed to stretch Kevin Trapp.
Mbappe may well have done when he found space in the 12th minute, but Mats Hummels came to Germany's rescue with a perfectly executed sliding tackle.
Lacazette – preferred in attack to Antoine Griezmann – eventually tested Trapp just before the half-hour mark, while at the other end an important block from Raphael Varane denied Ozil.
Minutes later Trapp had to be alert again to keep Mbappe out low to his right, the Paris-Saint Germain goalkeeper denying his club-mate after a neat Cruyff turn in the penalty area.
Finally, in the 33rd minute, the goal France's pressure deserved came, Martial dancing past Niklas Sule before touching the ball wide of Trapp for Lacazette to apply a simple finish.
Sacre bleu! Nothing Trapp can do this time, as Martial goes full FIFA to give Lacazette a tap-in (33') #GERFRA 0-1— Germany (@DFB_Team_EN) November 14, 2017
Half-time substitute Antonio Rudiger should have brought Germany level seven minutes after his introduction, but the Chelsea defender skewed his effort wide after great work down the left from Julian Draxler.
Germany did not have to wait long for their equaliser as Ozil led a swift counter-attack, his pinpoint throughball releasing Werner and the RB Leipzig forward calmly slotted under Mandanda.
Almost immediately Martial thought he had restored France's lead, but Trapp got down brilliantly to push away his dipping strike.
A Kroos free-kick rattled Mandanda's bar with 20 minutes to play but while the Real Madrid midfielder was wondering how it stayed out, France scored.
Rudiger inexplicably left Lacazette in acres of space 20 yards from goal and the 26-year-old beat Trapp again after being found by Mbappe's pass.
Low introduced Mario Gotze for his first international appearance in just shy of a year and he came good with a superb assist for Stindl, who kept their run going by sliding home a neat 93rd-minute finish.
|Spieth vows to be more artist than tactician in Open defence|
|Conte thanks Chelsea players, staff and fans|
|Rodgers: I´d love to play with the Packers to 40|
|Sevilla insist N´Zonzi will cost €40m|
|Hugill shows mystic powers with accurate World Cup predictions|
|World Cup 2018: FARE ready for post-tournament challenges in Russia|
|Woods grouped with Matsuyama and Knox at Open|
|Matthaus questions idea of French dynasty|
|Chandimal, Sri Lanka coach and manager banned for two Tests and four ODIs|
|Sassuolo demand at least €30m for Berardi|
|French media revels in ´crazy´ triumph|
|Mafi released on bail after alleged assault|
|Bierhoff must go! Berthold calls for Germany changes|
|Joshua to fight Povetkin in September|
|World Cup 2018: Goal-laden final adds to staggering World Cup stats|
|Runners and Ryders: Molinari impresses again as stars prepare for The Open|
|Macron to greet France team after Champs Elysees parade|
|Casillas and Suarez critical of VAR after World Cup final|
|TMO protocol clearly not working, says SANZAAR|
|Americans seek joy of six at Carnoustie, Rose out to end wretched run - The Open in Opta facts|
|Ronaldo arrives in Turin for Juventus medical|
|Stone: I had no idea what my score was!|
|The Open: A look back at Van de Velde´s Carnoustie calamity|
|Rakitic proud of ´brother´ Modric´s Golden Ball award|
|Serena can surpass Court, but Graf was the real target - Krajicek|
|Ronaldo moved to remain motivated - Kaka|
|Silva confident on Everton transfer targets|
|Golden Boot winner Kane aims to break August hoodoo|
|NFL training camp 2018: Contract holdouts and where they stand|
|Guardiola took me to another level - Alaba|
|Madrid selling Ronaldo a ´historic error´ - Calderon|
|MLS Review: LAFC, Atlanta held at home|
|Stones will watch re-runs of England´s World Cup matches|
|Ferdinand challenges Mourinho to unleash Pogba at United|
|Mbappe: I´m staying at PSG|
|Former NHL goalie Ray Emery found dead|
|Pirates secure five-game sweep of Brewers with walk-off win|
|WATCH: LeBron receives standing ovation at Lakers´ summer league game|
|Tony Romo wins celebrity-filled American Century Championship|
|McGregor praises Putin after attending World Cup final|
|Open-bound Kim claims maiden title with eight-shot triumph|
|Eagles running back Sproles plans to retire after next season|
|World Cup winner Rami retires from international football|
|Wimbledon champion Djokovic did not expect grand slam glory so soon|
|Ibrahimovic praises Pogba after World Cup final display|
|Wimbledon diary: Avengers too late for an Infinity War as Djokovic triumphs|
|Deschamp-agne – France´s 2018 vintage interrupt news conference to drench coach|
|I may have to dust my boots off! - Pele threatened by Mbappe exploits|
|WATCH: Mendy and Pogba dab with president Macron after World Cup win|
|Woods embracing ´different´ Carnoustie challenge ahead of Open return|
|Argentina dismiss Sampaoli after chaotic World Cup|
|France celebrates World Cup triumph|
|Djokovic made ´improvised Wimbledon trophies´ as a boy|
|Stone goes agonisingly close to 59 as Pepperell & Dantorp also make Open|
|Outcast Benzema delights in France win|
|Final a triumph in itself given Croatia´s off-field turmoil|
|Anderson laments Wimbledon final nerves|
|Deschamps joins elite club, Mbappe second to Pele - the best stats from the World Cup final|
|Belgium´s Courtois wins World Cup Golden Glove|
|Collarbone fracture confirmed for ´devastated´ Porte|
|World Cup final player ratings: Griezmann, Mbappe inspire France as Croatia fall short|
|World Cup winner Giroud ends tournament without shot on target|
|Modric wins World Cup Golden Ball|
|Mbappe wins World Cup Young Player award|
|Deschamps redeemed as France win World Cup final for the ages|
|France 4 Croatia 2: Twitter Report|
|Tomlin optimistic over Bell contract|
|Kane wins World Cup Golden Boot|
|Ajax keen on Blind deal - Van der Sar|
|France 4 Croatia 2: Pogba and Mbappe seal thrilling World Cup triumph|