Senior batsman Faf du Plessis on Monday stepped down as captain of South Africa's Test and T20 teams with immediate effect.
Du Plessis was rested for the three-match T20 series against England which South Africa lost 1-2 on Sunday.
The decision comes less than a week from the start of South Africa's T20 campaign against Australia.
Du Plessis, who gave away the ODI captaincy to wicket-keeper Quinton de Kock, for the recent series against England, said he took the decision to help South Africa start a new era.
"In a perfect world I would have loved to lead the team in the Tests for the rest of the season as well as the T20 World Cup," du Plessis said in a statement.
"But sometimes the most important attribute of a leader is to be selfless. I am healthy, fit, energised and motivated and certainly see myself playing an important role in the squad for as long as I continue putting in winning performances for the team," he added.