South Africa qualified for the FIFA World Cup knockout stage for the first time ever.
Thapelo Maseko scored the winning goal in the 63rd minute against South Korea.
South Africa finished second in Group A, behind group leaders Mexico.
The team will face Canada in the round of 16 in Inglewood, California.