South Africa dominated and beat South Korea 1-0 in their last group stage game with Thapelo Maseko scoring the winner, and Rele Mafekong playing a starring role for Hugo Broos' men.
The result means they finish second and will face Canada in the round of 32. South Korea, meanwhile, will have to wait on their fate after finishing third with three points.
In the other group game, co-hosts Mexico remained perfect with a big 3-0 win over a hapless Czechia.
