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.
Brazil did not have it all their own way, especially in an opening period dominated by the Central Americans, but the five-time winners grew into what became a controlled performance.
It means Mexico are once again eliminated at the last-16 stage - as they have been at every World Cup since 1994.
They did have plenty of chances early on, and it was only after a largely frustrating first half for Brazil that Neymar started the move to put his side ahead.
His run across goal and clever backheel won Willian space, and the Chelsea midfielder only needed two touches to drive into box and lay the ball across for the world's most expensive player to slide home.
It was Brazil's 227th goal at the World Cup, meaning they overtake Germany as the all-time top scorers.
Just moments earlier, Mexico's Jesus Gallardo wasted a brilliant chance when he shot wildly over the crossbar instead of playing in Hirving Lozano.
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.
Brazil will face Belgium or Japan - who meet in Rostov-on-Don in the day's second match - in their last-eight tie in Kazan on Friday.
Latest Stories
-
Center for Learning and Childhood Development Director Dr Kwame Sakyi honoured at Ghana Philanthropy Awards
8 hours -
Asantehene receives 28 looted artefacts
9 hours -
CAF WCL 2024: Ghana’s Thelma Baffour wins title with TP Mazembe
9 hours -
Benjamin Boakye slams politicisation of energy sector issues and ECG’s inefficiencies
10 hours -
Erastus Asare Donkor and Dr Neta Parsram win big at 10th Mining Industry Awards
10 hours -
Government is “suppressing information” about power sector challenges – IES Director
10 hours -
Majority of our debts caused by forex shortfall – ECG Boss
10 hours -
Pan-African Savings and Loans supports Ghana Blind Union with boreholes
11 hours -
Bole-Bamboi MP Yussif Sulemana donates to artisans and Bole SHS
11 hours -
Top up your credit to avoid potential disruption – ECG to Nuri meter customers
11 hours -
Dutch & Co wins 2024 Entrepreneur of the Year Award
11 hours -
We’ll cut down imports and boost consumption of local rice and other products – Mahama
14 hours -
Prof Opoku-Agyemang donates to Tamale orphanage to mark her birthday
15 hours -
Don’t call re-painted old schools brand new infrastructure – Prof Opoku-Agyemang tells gov’t
16 hours -
Sunon Asogli plant will be back on stream in a few weeks – ECG
16 hours