Cannot play media. Sorry, this media is not available in your territory.
Video - Wins for Brazil and Nigeria
China crashed out of the men's football tournament after losing 3-0 to Brazil.
The hosts needed to win to stand any chance of reaching the quarter-finals, but rarely threatened as a Diego goal and Thiago Neves' brace put them out.
Belgium beat New Zealand 1-0 and will play Italy in the last eight. Cameroon, who held the Italians 0-0, face Brazil.
Nigeria are through after beating the United States, who had Michael Orozco sent off in the third minute 2-1, while Holland beat Japan 1-0 to qualify.
Despite enjoying vociferous home support, China exited the tournament with barely a whimper.
Brazil dominated and opened the scoring in the 18th minute when Diego latched on to a defence-splitting through ball from Ronaldinho, and rounded keeper Liu Zhenli.
Diego ran on to a Ronaldinho through ball to score Brazil's opener
Liu saved well from Ronaldinho and Alexandre Pato before the half was over and although a packed stadium continued to encourage their players, China had little response.
Neves made the game comfortable for Brazil, curling a left-foot free-kick over the wall and past a motionless Liu before rifling in a low drive from 25 yards.
Brazil's next opponents, Cameroon, played 58 minutes of their final group game against Italy with 10 men after Georges Mandjeck was sent off for appearing to step on the ankle of Antonio Nocerino as they were challenging for a 50-50 ball.
Italy face Belgium who beat New Zealand 1-0 courtesy of Faris Haroun's header. The New Zealand side also finished the match with 10 men after striker Daniel Ellensohn was sent off.
Gerald Sibon scored a penalty to put the Netherlands through after Liverpool's Ryan Babel was fouled in the box.
The Dutch still needed Nigeria to beat the US though and all appeared to be running smoothly when Promise Isaac and Victor Obinna put Nigeria 2-0 up, but Sacha Kljestan converted an 88th-minute penalty to ensure a nervy finish.
But the States could not score the crucial equaliser that would have put them into the quarter-finals, Benny Feilhaber came closest when he headed against a post in the last minute.
The Netherlands will play reigning Olympic champions Argentina in the quarter-finals.
Ezequiel Lavezzi and Diego Buonanotte scored a goal apiece as the South Americans recorded their third victory, 2-0 against Serbia.
Chelsea's Salomon Kalou scored the only goal of the game as Ivory Coast beat Australia to set up a quarter-final tie with Nigeria.