Mexico supporters were tense as they watched their team fall behind against Sweden with their World Cup survival on the line, but erupted with joy despite the 3-0 deficit on the scoreboard after learning South Korea had taken the lead against Germany to send them through to the knockout round.
Kim Young-gwon scored in added time following a video review and Son Heung-min added another goal just before the final whistle.
The assistant initially ruled out Kim's opener - which was netted from close range after a corner - but VAR showed that two Germany players touched the ball before it reached the defender, leaving the referee to reverse the initial decision.
Tottenham forward Son Heung-min then piled on the embarrassment for the holders, scoring a late second after Manuel Neuer was caught way out of his goal.
South Korea beating Germany saved Mexico's World Cup hopes.
Time was running out when Matt Hummels headed over when free in the area and again and again Korea fund itself in good counter positions but just could not create that chance.
Stay tuned, World Cup fans: There's more drama to come Wednesday, with two games scheduled.
While Germany's defeat was heightened by the fact that they were the champions of the last World Cup, it was also significant because it enabled Mexico's team to still advance after being defeated by Sweden on Wednesday.
Shin, heavily criticised back home for the 1-0 defeat to Sweden and the 2-1 loss to Mexico in their previous outings in Russian Federation, said the win over Germany was all due to his meticulous preparation. Four years later, the picture that will come to sum up Germany's campaign in Russian Federation - if you can even call it that - doesn't depict a football scene.
Sweden coach Janne Andersson spoke of his pride after his side topped the group with second-half goals from Ludwig Augustinsson, Andreas Granqvist and an own goal from Edson Alvarez.
If every second person watches the game during the last hour of the working day and does not make up for this lost work time, the institute estimates the cost to employers could be between €130-200 million (roughly $150-230 million). Korea looked unsafe on the counterattack but just could not find the final ball.
Germany's team of superstars could only look on in shock in the final minutes of the match as United States referee Mark Geiger called for the video assistant referee to intervene after the unmarked Kim had bundled his shot past Germany 'keeper Manuel Neuer from a corner early in stoppage time. For South Korea to advance, it would have needed Mexico to beat Sweden.
"We think that we need to keep winning football matches".
Germany's Thomas Muller looks dejected after losing 2-0 to South Korea at the World Cup in Kazan, Russia. "Our World Cup nightmare has come true" German paper the Berliner describes their shock exit as an "embarrassment" and has questioned Joachim Low's future as manager Siegel's home page reads "It is a historic disgrace!"