Elmas scored with five minutes remaining to secure a famous win
North Macedonia stunned four-time world champions Germany as Eljif Elmas' late goal secured a shock win.
Goran Pandev had put North Macedonia ahead in the 2022 World Cup qualifier on the stroke of half-time.
Ilkay Gundogan equalised from the penalty spot early in the second half after Leroy Sane had been fouled.
But North Macedonia, ranked 65th in the world, snatched victory with five minutes remaining when Elmas struck from close range.
Chelsea forward Timo Werner missed a glorious chance to score for Joachim Low's side before North Macedonia's winner but somehow fired wide from close range.
'We've never beaten a team with so many titles'
It was a first defeat in Group J for Germany and the first goals they had conceded in qualifying.
The loss also ended their 35-game unbeaten run in World Cup qualifying, stretching back to their 5-1 defeat by England in 2001.
"This is bitterly disappointing," Low said.
"We were not fresh enough, we made mistakes. When we played quickly we were dangerous but we did not find the tools to be really threatening.
"Overall, it was disappointing to lose like that at home."
The defeat ended Germany's 17-game winning run in qualifying
North Macedonia's win was their second in Group J and means they are second with six points, three behind leaders Armenia with Germany third.
"These lads have made North Macedonia proud against the winners of four World Cup titles and three European championships," North Macedonia coach Igor Angelovski said.
"We've never beaten a team with so many titles. Now we have to get some rest as what we have accomplished still hasn't sunk in."
Before kick-off, Germany's players unfurled a banner supporting human rights.
Germany players also wore T-shirts to show support for Qatar migrant workers before their World Cup qualifying win over Iceland on Thursday.
Line-upsMatch StatsLive Text
22ter Stegen4Ginter16Rüdiger23Can6Kimmich19Sané18Goretzka21Gündogan7Gosens10Havertz20Gnabry22ter Stegen4GinterSubstituted forMusialaat 89'minutesBooked at 89mins16RüdigerBooked at 37mins23CanBooked at 90mins6Kimmich19SanéBooked at 46mins18Goretzka21Gündogan7GosensBooked at 28minsSubstituted forYounesat 56'minutes10HavertzSubstituted forWernerat 56'minutes20Gnabry
1Dimitrievski16Nikolov13Ristovski14Velkovski6Musliu8Alioski17Bardhi5Ademi21Elmas9Trajkovski10Pandev1Dimitrievski16NikolovSubstituted forBejtulaiat 59'minutes13Ristovski14VelkovskiBooked at 5mins6Musliu8AlioskiSubstituted forRistevskiat 90'minutes17Bardhi5Ademi21ElmasBooked at 67mins9TrajkovskiSubstituted forSpirovskiat 72'minutes10PandevBooked at 77minsSubstituted forStojanovskiat 90'minutes
Home TeamGermanyAway TeamNorth MacedoniaPossessionHome70%Away30%ShotsHome11Away6Shots on TargetHome2Away3CornersHome2Away5FoulsHome14Away14
Match ends, Germany 1, North Macedonia 2.