Joachim Low's men triumphed on Russian soil in the Confederations Cup earlier this year and start at Moscow's Luzhniki Stadium on June 17 versus a side they ran out 4-1 winners over in the semi-finals of that tournament.
Mexico's tough assignment comes three days on from the hosts kicking off proceedings in a seemingly favourable opener against Saudi Arabia.
Spain and Portugal will play out an Iberian derby in Sochi, a fittingly temperate setting on the Black Sea coast, and the winner will be a heavy favourite to top Group B. Iran and Morocco make up the section.
|Group A||Group B|
|Group C||Group D|
|Group E||Group F|
|Group G||Group H|
Five-time champions Brazil being against Switzerland in Rostov and further pairings with Costa Rica and Serbia mean head coach Tite can be pleased with the draw overall.
Great rivals Argentina have a more complicated task alongside Euro 2016 surprise package and tournament debutants Iceland, Croatia and Nigeria in Group D. It is the fifth time in Nigeria's six World Cup appearances that they have drawn two-time champions Argentina.
An array of Premier League stars will be in action on the final matchday in Group G, when England take on Belgium – featuring Eden Hazard, Kevin De Bruyne, Romelu Lukaku and company – in Kaliningrad.
Tunisia and debutants Panama's presence means that match will be expected to double up as a winner-takes-all showdown for top spot.
Peru and Denmark's reward for coming through play-off clashes last month are places in Group C alongside France – benefitting from a stellar generation headed by Paul Pogba, Antoine Griezmann and Kylian Mbappe – and Australia.
Poland are the top seeds in Group H, where Colombia represent tough matchday two opposition. Those nations begin against Senegal and Japan respectively.