Andre Silva made it 3-0 in the 80th minute with a solo strike that put Fernando Santos' men on course to claim top spot on goal difference and Nani added further gloss to the scoreline in stoppage time.
It was a typically efficient performance from Portugal who never looked in real danger despite a sluggish start.
Team Mexico cruised past Russian Federation with the 2-1 win in the third and final group stage match of the 2017 FIFA Confederations Cup, knocking the hosts out from further battle for the trophy, APA reports quoting TASS.
Mexico went ahead seven minutes after the break, Akinfeev making a calamitous decision to come for a long ball and missing it, allowing Lozano a simple finish.
Cristiano Ronaldo, Bernando Silva, Andre Silva and Nani all got on the scoresheet as the Euro 2016 winners finished top of Group A ahead of Mexico, who claimed the runners-up spot after registering a 2-1 triumph over hosts Russian Federation.
Marinovic made impressive saves to deny Ronaldo, Andre Silva and Nani but was powerless to stop Andre Silva or Nani late in the game.
Juan Carlos Osorio's side finished in the second position with seven points behind Portugal (due to an inferior goal difference of +2) who also defeated New Zealand 3-0 to set up a semi-final clash with the victor of Group A.
Igor Akinfeev was then left embarrassed as Lozano nipped in front of the Russian Federation goalkeeper to head in from the edge of the area on 52 minutes after a towering clearance caused chaos in the home defense.
Less than three minutes after that, Mexican striker Hirving Lozano rushed out into the goal zone one on one with Russia's goaltender Akinfeev and scored a header to bring up the advantage of his team over the hosts to 2-1.
It was 2-0 four minutes later when Bernardo Silva slipped a shot into an unguarded goal after neat play on the left flank between Ricardo Queresma and Eliseu. A scramble in front of the Mexican goal eventually led to Russia's Aleksandr Samedov putting a left-footed shot past Guillermo Ochoa.
Mexico thought they had extended their lead in the 60th minute but Hector Moreno's goal was ruled out for offside by the video assistant referee after a review. But the lead lasted just five minutes when on the half hour mark Araujo looped a header over Igor Akinfeev from a freaky free kick awarded for handball.
Mexico was level within five minutes, however, as Araujo looped a header across goal that deceived Akinfeev and nestled into the net.