Argentina defeated Poland courtesy two second-half goals from Julian Alvarez and Alexis Mac Allister to seal its spot in the Round of 16 on Wednesday at the Stadium 974.
The limelight in the first half was stolen by a controversial penalty decision in favour of Argentina. Messi stepped up to take the penalty but Wojciech Szczęsny saved.
But Mac Allister saved the blushes for Messi when he scored the opening goal in the 46th minute, converting a Nihuel Molina cross from the right flank.
Alvarez added a second in the 67th minute to double the lead for La Albiceleste and ensure they move to the knockouts as group toppers.
Argentina will now face Australia in the Round of 16 on December 3.
Poland succeeded in scraping through to the last 16 despite the loss as Mexico failed to overtake it in terms of goal difference.
Mexico led 2-0 till the stoppage time and was fighting for a third goal which would have sent the North American side to the knockouts. However, Saudi Arabia scored to quash the Mexican hopes.