The Barcelona star scored his third and fourth goals of the tournament as the host nation condemned the Africans to their seventh straight World Cup defeatTwo goals from Neymar helped Brazil to a 4-1 win over Cameroon and set up a last-16 clash with Chile.
The forward exposed a vulnerable defence with glee in Brasilia on Monday, his first-half double sandwiching Joel Matip's unlikely leveller.
Brazil ultimately progressed with a degree of comfort, as the much-maligned Fred and substitute Fernandinho added further goals after the interval to secure a last-16 tie against fellow South Americans Chile.
Mexico were victorious against Croatia in Group A's other closing fixture, but failed to make up a goal-difference deficit as the hosts retained top spot.
While a routine triumph in which Brazil's star man took his tournament tally to four goals will provide comfort, Luiz Felipe Scolari is unlikely to partake in too much backslapping.
Indeed, after coming through a group featuring no other major footballing powerhouse, Scolari is likely to demand more of his side as they prepare to face a Chile outfit that have impressed in the tournament to date.
The game immediately took on a frenetic nature as Paulinho and Vincent Aboubakar had goal-bound efforts blocked at either end.
It was Cameroon's susceptible backline that was first to be breached when Neymar, inexplicably unmarked, cleverly turned home Luiz Gustavo's low cross from the left.
Brazil's golden boy came agonisingly close to a second soon after, Charles Itandje producing a fine save to keep out his fizzing volley.
Despite their defence appearing increasingly hapless, Cameroon looked dangerous at the other end and fired a warning shot as Matip's header rattled the crossbar.
Not heeding the lesson proved costly for the hosts, too, as Matip side-footed Allan Nyom's cross into an empty net the next time he got an opportunity.
With Brazil seeking a response to increasing Cameroon pressure, Neymar again stepped up, albeit with the help of some more schoolboy defending; afforded far too much space once more, the Barcelona forward cut inside from the left and sent Itandje the wrong way.
While those in front of him wilted in the face of pressure, Itandje was at least attempting to provide a steadying influence, getting down quickly to turn away Hulk's speculative hit.
The goalkeeper had to be on high alert again after the interval, denying Hulk and Neymar in quick succession.
But he could do little as another Brazilian, this time Fred, was left free in the area, the under-pressure forward heading home David Luiz's pass.
Brazil opted for a more controlled approach thereafter, epitomised by their willingness to withdraw Neymar after 71 minutes.
Even then, the drama was not finished, with Mexico threatening to steal the group after scoring three quick goals against Croatia.
However, the impressive Fernandinho, who came on as a half-time replacement for Paulinho, settled any nerves with a cool finish following a fine move involving Oscar and Fred.