Home » Unlabelled » South Africa 1-2 Ghana: Fantastic Ayew fires Black Stars into knockout rounds
Avram Grant's men looked destined to crash out of the tournament after Mandla Masongo gave South Africa the lead in the 17th minute, but mounted a late fightback and remain in the hunt for the title.
John Boye restored parity 17 minutes from time to give Ghana hope, but they were still on course to be sent home as the clock ticked down.
However, Ayew latched onto the end of a Baba Rahman cross to put the ball into the back of the net in the 83rd minute, and see Ghana into the next round.
Grant's side finish top thanks to their head-to-head record against Algeria, who beat Senegal 2-0. South Africa are eliminated as the group's bottom side.