Neymar scored a splendid ninth-minute volley and set up a late tap-in for Jo as Brazil beat Mexico 2-0 to move on to the verge of a semi-final spot.
Brazil and Mexico meet in Group A on Wednesday in very different frames of mind. While the hosts are looking to maintain their promising form, El Tri need points to stay in the competition.
On the second matchday of the FIFA Confederations Cup, there was a masterclass of the art of free-kick taking from centurion Andrea Pirlo and Uruguay's Luis Suarez, but only the former ended up on the winning side.
A brilliant Andrea Pirlo free-kick, on his 100th international appearance, and a 78th-minute Mario Balotelli effort earned Italy a 2-1 win over Mexico in their Brazil 2013 opener.
Mexico were crowned Olympic champions as Brazil’s hoodoo in the competition continued at the climax of an enthralling tournament played in iconic locations across the United Kingdom.
Wembley Stadium is the venue for the first semi-final of the Men's Olympic Football Tournament between Mexico and Japan. The winners remain in London for a shot at gold on Saturday.