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
-
NDC Obuasi East MP-elect hails Supreme Court decision on re-collation
6 hours -
2024/25 GPL: Kwame Opoku scores on return as Asante Kotoko beat Gold Stars
6 hours -
Philip Nai and friends spend time with kids of Agblezaa on Christmas eve
7 hours -
Education is in crisis – NCPTA General Secretary
7 hours -
Celebrating 65 years of impact: Commonwealth scholars and fellows alumni in Ghana
8 hours -
Our confidence in the law has borne fruits – Ebi Bright on SC ruling
8 hours -
Mandamus application to be heard by new High Court judge – Supreme Court rules
8 hours -
Krofuom residents attack GNFS personnel as fire destroys Trinity TV and church
8 hours -
Movie review: Peter Sedufia’s ‘One Night Guests’
9 hours -
Three dead, several injured in accident on Cape Coast-Accra highway
9 hours -
MTN donates to support two hospitals in Savannah region
9 hours -
NDC victory a call to action for agricultural and economic revitalization in Ghana – Klutse Kudomor
10 hours -
Adidome Chief alarmed over rising teenage pregnancy in Central Tongu, calls for collective stakeholder action
10 hours -
MTN Foundation celebrates Christmas with new mothers across Ghana
10 hours -
MTN Ghana presents hampers to 60 Christmas babies in Central region
10 hours