Ghana have reached the quarter-finals of the Africa Cup of Nations as Group C winners after scoring twice in the final 20 minutes to beat South Africa in Mongomo.
Ghana began the game on the front foot and were close to taking the lead twice in the opening five minutes. First, Jonathan Mensah headed wide before Jordan Ayew saw a shot cleared off the line.
Not long after it was South Africa who stunned the Black Stars, though, as Mandla Masango scored arguably the goal of the tournament with a dipping volley from 25 yards.
Asamoah Gyan was close to pulling Ghana quickly level, but his fierce effort was beaten out by Nhlanhla Khuzwayo.
At the other end, Bongani Ndulula was closest to doubling South Africa's lead before half time when his header was kept out by Brimah Razak.
John Boye, after being introduced as a substitute in the first half, would be the man to bring Ghana level in the 72nd minute when he instinctively turned home Andre Ayew's scuffed effort.
Kwesi Appiah struck the post as Ghana went in search of a winner, and they would breach Bafana Bafana's backline with seven minutes remaining when Ayew powered home a header.
The Black Stars finish level on points with Algeria at the top of the group and go through as group winners because they beat Algeria in their meeting on Friday.