Heinrich Klaasen, 32, says he is done with test cricket.
The Proteas wicket-keeper and batsman announced his retirement on Monday after donning the green and gold in four matches between 2019 and last year.
"The battles that I faced on and off the field have made me the cricketer I am today. It has been a great journey and I am glad I could have represented my country," says Klaasen.
The 32-year-old steps away from the red-ball format after making his debut in India five years ago. He then went on to represent the country in Australia and the West Indies last season.
Klaasen also played 85 first-class matches where he amassed 5 347 runs at an average of 46.09, including 12 hundreds and a career-best of 292 for the Momentum Multiply Titans in the CSA 4-Day Series.
Speaking on his decision, Klaasen said: "After a few sleepless nights wondering if I am making the right decision, I have decided to retire from red-ball cricket. It's a difficult decision that I have made because it is by far my favourite format of the game."
He thanked everybody who was part of his career and said that a new challenge awaits, which he is looking forward to
Cricket South Africa's Director Enoch Nkwe added: "It is tough to see a player of Heinrich's calibre step away from red-ball cricket, but we respect his decision.
"We look forward to seeing him excel in the white-ball arena and continue to make valuable contributions to South African cricket in the years ahead."