Reigning World Cup champions Germany were on the brink of elimination on Saturday during their enthralling clash with Sweden.
They went 1-0 behind but Marco Reus levelled for Germany before Toni Kroos stepped up and smashed a last-gasp free-kick into the top corner at the Fisht Olympic Stadium on Saturday.
The victory has kept Germany in with a great shout of qualifying for the round of 16 and Group F is now fascinatingly poised, with all four teams still in with a chance of progressing.
Here, Sportsmail takes a look at the permutations going into the final round of group games...
MEXICO - 6 POINTS
Mexico will be very confident of reaching the knockout stage of the World Cup after claiming the scalp of Germany before beating South Korea on Saturday.
With six points in the bag, they are likely to finish top but there is still a danger they may miss out on the next round.
To finish in first place, they only need to pick up a point against Sweden, who will be fighting for their lives on Wednesday.
Juan Carlos Osorio's side will even qualify in second if they lose to Sweden and Germany beat South Korea, providing Mexico's goal difference/goals for/head-to-head is still better than Germany's.
And there is also the unlikely chance that they could crash out at the first round. Sweden would also go through with Germany in place of the Mexico if they win by two clear goals.
GERMANY - 3 POINTS
They were left flirting with an early exit throughout Saturday's game with Sweden but now Joachim Low's side will be confident of going further.
Germany are level on three points with Sweden but will qualify in second if they better Janne Andersson's side's result against Mexico.
But inevitably the Germans will still be eyeing top spot. And this can come true if Germany match or better Sweden's margin of victory against Mexico and put two or more goals over South Korea.
However, they will be eliminated if they draw or lose to South Korea and Sweden beat Mexico.
SWEDEN - 3 POINTS
The Swedes are now in a perilous position following their heartbreaking defeat at the hands of Germany.
Andersson's men will fail to qualify if they are held or lose to Mexico, while Germany better their result.
They can finish second though if South Korea overcome the odds against Germany and they better Joachim Low's side's result.
There is an outside possibility they could top the pile come Wednesday, if they beat Mexico 1-0 and better Germany's result.
SOUTH KOREA - 0 POINTS
Let's face it, South Korea are on the verge of heading home early but there is a very very small chance their journey in Russia won't come to a halt in the coming days.
They can't finish top but they can come second. South Korea will only qualify with a win against Germany combined with Sweden losing to Mexico and having a better goal difference than Germany and Sweden.
Đaiveed ♥
41
Germany would qualify alright, I don't see them loosing to South Korea...Their performance against Sweden was outstanding much more better than the performance Mexico put on to defeat South Korea to show you that Germany had every chance and possibility .South Korea don't know how defend properly and they always makes rough tackles but most of the players have enough pace and agility which would trouble Germany defence, their players most of them are good at passing shooting and tapping. South Korea would be a very difficult and tough game but we can't afford to loose it's gonna be our final game and we have to perform in top quality because if we don't well who knows??? Good Luck Germany [goahead]3points 💪