Mexico has beaten Croatia 3-1 to seal second place in Group A and progress to the World Cup knockout stages on Tuesday morning.
Captain Rafael Marquez, midfielder Andres Guardado and Manchester United forward Javier Hernandez scored the goals in an end-to-end encounter.
Marquez rose highest at a corner on the 72nd minute to open the scoring sparking wild Mexican celebrations on the sidelines.
Mexico had earlier had a huge penalty shout when a cross from the left hit both hands of Croatia captain Darijo Srna, but the referee called for a corner, instead.
But it ultimately did not matter as Marquez’s goal came later, before a Guardado finished flowing counter-attack to book Mexico’s passage to the next round.
Javier Hernandez then stole in to nod home a cross at the far post on the 81st minute to prompt brief hopes Mexico could top the group on goal difference.
Brazil’s late goal to make it 4-1 over Cameroon ultimately meant Brazil finished top of the group, before Ivan Perisic scored a late consolation goal for the Croatians.
The night got worse for Croatia as Ante Rebic, on as a substitute, was given a straight red card for a bad tackle on Carlos Pena.
As a result, Mexico will face the Netherlands in Porto Alegre after the Dutch beat Chile 2-0 to seal top spot in Group B.