South Korea defeated Portugal in the last minute of the game to advance to the knockout stage.
After running onto Son Heung-min's pass in the 91st minute, Hwang started wild celebrations from his side's fans in the stands.
South Korea needed to win to stand a chance of joining Portugal in the knockout stage, but they were not able to do that.
On the pitch and in the stands, players and supporters watched the final moments of the game, knowing that another goal would send them out.
South Korea were able to start the party when a huge roar went around Education City Stadium after the 2-0 win.
There was no hope of a happy ending for South Korea when they fell behind after only five minutes.
Diogo Dalot surged into the box from the right and from his cutback, Ricardo Horta was in the right place to sweep a first-time shot past Kim.
South Korea's task was made more difficult by the fact that they fell behind and their fans were loud.
The side led by former Portugal player and coach Paulo Bento thought they had responded immediately when Kim Jin-su turned home the rebound after Diogo Costa saved Cho Gue-sung's flick. The celebrations were stopped by a flag.
After another cross, an equalising point was soon to come. This time a corner wasn't cleared and the ball went into the path of Kim Young-gwon, who could hardly miss.
South Korea's route out of Group H was open again, but they didn't have the goals they needed.
Portugal, now safe as group winners, looked more likely to score with the two closest to the goal.
Son, so often his nation's hero, seemed to be trying to do too much himself and although he got plenty of power behind two long range efforts, both were blocked.
Son played the pass instead of shooting himself after South Korea mounted a final attack after clearing a corner at the end of the game.
He slipped Wolves forward Hwang clear to run into the area and deliver a cool finish to the World Cup group stage.
The winner of the Group G will get a tie against South Korea, while the loser will get a game against Switzerland.
Get the latest results and goal notifications for any team at the Fifa World Cup by downloading the BBC Sport app: Apple - Android - Amazon
You can get a daily dose of the World Cup on the radio.