The Brazilian national team, which has won its World Cup round of 16 match against Mexico, will play against either Belgium in the quarterfinals.
Neymar scored the first goal of the Brazil-Mexico match in the 50th minute.
Brazil's midfielder Roberto Firmino scored the second goal in the 88th minute, firing a low shot that was almost saved by Ochoa.
The 26-year-old Paris Saint-Germain striker, who broke out in tears after scoring his first goal of the tournament in Brazil's 2-0 Costa Rica win, was all smiles after he tapped in Willian's powerful cross in the 51st minute.
Forward Neymar was named the man of the match as Brazil defeated Mexico in its round of 16 match at Samara Arena.
The Mexican national team has been knocked out from the round of 16 every World Cup since 1994.
Sputnik