South Africa won both the men's and women's competitions ©African Hockey Federation/Facebook

South Africa came from behind to beat hosts Egypt 2-1 and claim an eighth successive Africa Cup of Nations triumph in Ismailia today.

Earlier their female counterparts had enjoyed a more straightforward win over Ghana to claim a seventh consecutive continental crown.

Both teams, therefore, secured spots at next year's International Hockey Federation World Cup.

South Africa's men had to do it the hard way at the Suez Canal Hockey Stadium as Ahmed Elganaini put the hosts ahead in the eighth minute.

The defending champions trailed until just 20 minutes remained before Taine Paton rocketed a loose ball home in his 99th international match.

Jethro Eustice then fired home a drag flick with two minutes left on the clock to secure the victory.

Ghana had earlier beaten Kenya 5-3 in the bronze medal match.

South Africa thrashed Ghana 4-0 in the corresponding women's final.

Tarryn Glasby scored twice while there were further strikes from Ilse Davids and Lilian Du Plessis.

Nigeria won 2-1 on penalty strokes in the bronze medal match after a 3-3 draw with Kenya.