Internacional striker Leandro Damiao inspired 10-man Brazil to comfortable 3-0 Group C victory over New Zealand to send them into the quarterfinals with a 100 per cent record.
The 23-year-old set up midfielder Danilo to open the scoring and then claimed his second of the tournament before the break, with Tottenham's Sandro adding a third in the second half to cement the win which will see his side return to St James' Park on Saturday evening.
Egypt qualified for the quarter-finals of the Olympics with a deserved 3-1 win over Belarus at Hampden Park.
The North Africans got the all-important breakthrough 11 minutes after the break as Mohamed Salah sweetly controlled a long ball through the middle and slotted home his third goal of the competition.
Belarus were then undone by two flowing moves from the Egyptians allowed Marwan Mohsen and then Mohamed Aboutrika the easiest of finishes.
Andrei Voronkov pulled one back with a fine header three minutes from time but it was too little too late for Belarus, who bow out of their first ever Olympics at the group stages.