Underdogs Cape Verde reach quarter-finals
A header from Gege after 82 minutes and a strike from substitute Heldon in the first minute of stoppage time gave the islanders the most unlikely of wins and put them into the last eight after South Africa drew 2-2 with Morocco in the other Group A match in Durban.
Angola had taken the lead when Nando deflected the ball into his own net after 33 minutes, but even though Angola were winning for much of the match, they looked like being eliminated while Morocco were beating South Africa.
Late goals in both games changed everything in the final minutes as Cape Verde clinched their place in the last eight to take second place in the group behind South Africa. Morocco finished third and Angola fourth.
The showdown in Port Elizabeth was the first time the two former Portuguese African colonies had met in the tournament and many of the players from both sides have links past and present at club level.
But despite the "derby" aspect of the match, it got off to a ponderous start with lots of scrappy play from both sides.
The end could hardly have been more different, ending in high drama as Cape Verde came from behind to win.
Angola coach Gustavo Ferrin made five changes to the side that lost 2-0 to South Africa in their previous match in a bid to give them a fighting chance of squeezing into the last eight.
One of those changes, midfielder Djilma Campos helped set up their opening goal when he provided the cross for Mateus. Under pressure as Mateus went for goal, the ball took its deflection off Nando and went into the back of his own net.
But Cape Verde never stopped coming forward and equalised when Gege headed home after 82 minutes. The winner came when Lama made a dreadful mistake in the Angolan goal as Heldon swept home the winner.