Switzerland and Honduras drew 0-0 in their final Group H game with chances missed at both ends as the two sides were eliminated from the World Cup.
Switzerland, who had beaten European champions Spain in their opener, could have reached the second round with victory over the Central Americans but rarely looked like scoring.
In the end, they finished with just one goal scored and one conceded in their three games. Honduras finished bottom of the group and failed to score in the tournament.
Spain, who beat Chile 2-1 in Pretoria, finished top and will play Portugal while the Chileans came second and face Brazil.
The Swiss, despite being more physically imposing, were very disappointing and strangely displayed a lack of zest given the high stakes while Honduras played the more attractive soccer.
The group outsiders, for whom Ramon Nunez looked dangerous, opened up the much-vaunted Swiss defence often and better finishing would have seen them a goal or two up by halftime.
FIRST CHANCE
Honduras started well but the first chance of the game went to the Swiss when captain Gokhan Inler shot wide from just outside the penalty area in the 10th minute.
Chances went begging at both ends. In the 38th, Wilson Palacios raced through the middle but was dragged down by Gelson Fernandes, who earned a yellow card for his efforts.
The best chance of the half fell to Swiss striker Blaise Nkufo just before the break, who chested down a cross from Eren Derdiyok a metre from goal only for the ball to bobble away.
After the break Honduras threatened when striker David Suazo failed to put away a diving header in the 52nd which would have given them a deserved lead.
Hakan Yakin, on for Fernandes, should have done better in the 59th but shot tamely. Tranquillo Barnetta and Derdiyok also both wasted good chances when well-placed in the Honduran box.
Likewise at the other end, Edgard Alvarez wasted a good opportunity with only goalkeeper Diego Benaglio to beat.
Switzerland coach Ottmar Hitzfeld brought on team captain Alexander Frei for Nkufo in the 69th minute but he could not break the deadlock as the match finished goalless.
Group H 23-man squads
Vintage Spain finally enter the fray
Swiss make history, upset Spain
Swiss pull off shock 1-0 win over favourites Spain
Villa double gives Spain win over Honduras