Hashim Amla has resigned as South Africa's Test captain.
Amla made 201, his best score as skipper, as the Proteas drew the second Test with England in Cape Town, but announced his retirement immediately after the match.
Amla said: "After careful consideration, I wish to announce I am stepping down as captain of the Proteas Test team with immediate effect. I remain committed to the Proteas team across all formats of the game."
Cricket South Africa chief executive Haroon Lorgat announced that Amla's successor for the remainder of the series against England will be fellow top-order batsman AB de Villiers.
South Africa won four, drew six and lost four of Amla's 14 Tests as captain.
"This decision was not an easy one to make but I felt I needed to be true to myself,” he said.
“I am comfortable with my decision, knowing that I have given my best at all times and will continue to do so."
Amla made 894 runs at an average of 49.66, slightly down from his career mark of 51.13 in 90 Tests, making three centuries while in charge of the side.
"I feel there is a greater need to work on my own game, thus giving me the opportunity to continue contributing as a batsman," he continued.
"I was deeply honoured when the position was offered to me as this is the pinnacle for any sportsman. I am extremely grateful to have had the privilege of captaining this wonderful team.
"I believe there is still a great deal I can offer to the team and look forward to contributing to their success."
De Villiers has captained his country in 76 one-day internationals, winning 44 of them but losing the semi-final of the 2015 World Cup to New Zealand.
Respect @amlahash ...
— Michael Vaughan (@MichaelVaughan) January 6, 2016
He has also been in charge for 15 Twenty20 Internationals, including World T20s in 2012 and 2014.
He said: "I've said this before, that it is an incredible honour to captain South Africa in any format. The (Test) captaincy has obviously come at short notice and is the realisation of a lifelong dream.
"At the moment my priority and focus is placed on leading this team to what can be a memorable series win against England. This Test squad is motivated and determined to turn our performances around and I'm looking forward to taking up that challenge as captain.
"Hashim is a good friend and close colleague and I am grateful for his support."
Lorgat said in a statement released by CSA: "We respect Hashim's decision and the manner in which he thought about it and then communicated with me. It was consistent with his well respected personality.
"He still has a huge role to play in shaping the success of our team without the need for a leadership title. He is just that type of a person and we are very fortunate to have him in our stable.
"I want to thank AB for readily accepting the challenge of rebuilding our Test team as we seek to remain the best team in the world."