Gary Kirsten, who led India to their 50-over World Cup triumph this year, has been appointed coach of his native South Africa.
The former opening batsman will formally take over in August ahead of the two home series against Australia and Sri Lanka, Cricket South Africa said at a news conference on Monday.
Kirsten's successful three-year stint as India coach ended in April when he turned down a lucrative contract extension.
The 43-year-old will be taking over from Corrie van Zyl at South Africa.
Kirsten played 101 Tests and 185 one-day internationals for his country.
De Villiers named ODI, T20 captain
Meanwhile, prolific batsman AB de Villiers was named South Africa's ODI and Twenty20 skipper while Graeme Smith was retained as Test captain.
De Villiers will also be Smith's deputy in Tests while Hashim Amla will be the ODI and Twenty20 vice-captain.
Smith had stood down as ODI captain following South Africa's World Cup debacle in March.
De Villiers has played 119 ODIs since making his debut in 2005 and has scored 4523 runs at an average of 45.68. He has scored 11 hundreds and 26 half centuries.