Mexico had arrived to this game knowing a draw would be enough to advance to knockout stage after Argentina had beat Panama 3-1 in the earlier game.
Both sides had their pair of chances in a lively first half, with Ulises Cardona coming closest in the early stages of the match when he weaved his way past several Ecuadorian defenders before sending a shot jus wide of Jose Cevallos goal.
Ecuador were eventually punished in the 25th minute when well constructed corner kick finished with Johan Vazquez scoring the go-ahead goal.
Johan Vázquez gives Mexico a 0-1 lead with a great header! Pablo López with the assist pic.twitter.com/ubWnwEj3Sm— Mex Nex Gen (@MexNexGen) August 4, 2019
Ten minutes after conceding, Ecuador nearly found themselves leveled after a header from Leonardo Campana came dangerously close from beating Jose Hernandez.
In the second half, Mexico remained under threat, and just minutes into the second period, Hernandez had to be called into action following a scramble inside the box.
In a desperate attempt to salvage something, Ecuador started to increasingly send their players forward, leaving them vulnerable on the counter. As a result, Mexico were responsible for squandering several key chances, including one from second half substitute Marcel Ruiz.
With the game nearing its end, Mexico would eventually seal the game thanks to a Mauro Lainez penalty. An Ecuadorian defender inexplicably handled the ball inside the box, and Lainez was there to score and send Mexico through to the next round.
Mauro Lainez converts the penalty and makes it 0-2 for Mexico vs Ecuador! pic.twitter.com/t4Gpqxr17O— Mex Nex Gen (@MexNexGen) August 4, 2019