Neymar scored one goal and played a key role in the second as Brazil edged out Mexico in Samara to reach the World Cup quarter-finals for a seventh consecutive time, BBC reported.
Brazil did not have it all their own way, especially in an opening period dominated by Mexico, but the five-time winners grew into what became a controlled performance.
For much of the second half, Mexico's bright start was just a memory, but Carlos Vela forced a save from Brazil goalkeeper Alisson with his side's first shot on target not long after going behind.
In the match's closing stages they rallied once more, but Brazil defended stoically before doubling their lead on the break through a Roberto Firmino tap-in after Neymar's effort was diverted by the toe of Mexico goalkeeper Guillermo Ochoa.
Follow NEWS.am SPORT on Facebook, Twitter and Telegram