Du Plessis had already been replaced as ODI skipper by Quinton de Kock but he announced on Monday that he is also to give up the role in Tests and T20Is
Faf du Plessis has resigned as South Africa captain in all formats.
Du Plessis had already been replaced as ODI skipper by Quinton de Kock but he announced on Monday that he is also to give up the role in Tests and T20Is.
The 35-year-old skippered his country on 112 occasions. He will continue to be available for selection.
He said in a statement that it had been "the greatest honour of (his) life" to lead the Proteas.
The statement read: "The last few weeks of rest away from the game have given me a lot of perspective on the great privilege and honour I have had in representing and leading my country in the three formats of this wonderful game.
"It has been a rewarding, sometimes tough and other times a lonely road, but I would not replace the experience for anything, because it has made me the man that I am proud to be today.
"As the team heads into a new direction with new leaders and a young crop of players, I feel it will be in the best interests of South African cricket to relinquish the captaincy in all formats. This was one of the toughest decisions to make, but I remain fully committed to supporting Quinton, Mark and my teammates as we continue to rebuild and re-align as a group.
Faf du Plessis captained South Africa on 112 occasions
"After the 2019 ICC World Cup, I made the decision to continue in my role as captain while the team went through a rebuilding phase following the retirement of some key senior players and a complete overhaul of the coaching staff that we had worked with until then.
"It was important to me that I stayed to help the team find its feet and plot a new way forward while assisting in identifying the next generation of leaders within the players’ group during a time of turbulence in SA cricket. The last season of my captaincy has been the most challenging to date as I had a lot of off-field issues that I devoted my energy towards.
"I have strived to lead the team with dignity and authenticity during exhilarating highs and devastating lows. I have given my everything during my tenure. I have never been one to throw in the towel and do believe I am putting the team first and believe we have to stick through the tough times to get to the good times.
"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, 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."
De Kock is to assume the role across formats, having made an instant impression during the recent white-ball series against England.
“South African cricket has entered a new era," Du Plessis said.
"New leadership, new faces, new challenges and new strategies. I remain committed to play in all three formats of the game for now as a player and will offer my knowledge and time to the new leaders of the team.
"Finally, I would like to take this opportunity to express my deepest gratitude to everyone who has supported me in my captaincy throughout the years – my wife and daughter, family, teammates, Proteas coaching staff, management and selectors, CSA board and staff, friends and fans of South African cricket. It has been the greatest honour of my life to lead my country."