The Koreans' tournament looked to be over until substitute Hwang Hee-chan popped up in injury time to score the winner in a 2-1 victory over already qualified Portugal on Friday in Qatar.
That propelled them into the knockout rounds and a daunting date with Brazil, one of the pre-tournament favourites.