Cricket South Africa has confirmed Mark Boucher will step down from his role as the national team's head coach after the T20 World Cup.
The Proteas suffered a nine-wicket defeat in the third and final Test of their tour of England at The Oval on Monday, losing the series 2-1.
Boucher took on the role in December 2019, signing a four-year deal and going on to secure 11 wins in Test matches, as well as 12 ODI and 23 T20I victories.
South Africa are currently second in the ICC World Test Championship table, despite their loss in England, and Boucher's last games in charge will come at the T20 World Cup in Australia, which runs from October 16 to November 13 later this year.
A statement from CSA on Monday outlined that Boucher had resigned to "pursue other opportunities in line with his future career and personal objectives".
"While Cricket SA greatly regrets that Mr Boucher is unable to see out the term of his contract, it respects his decision and wishes him all the best in his future endeavours," the statement added.
The former Proteas wicket-keeper earned 147 Test caps during his playing days between 1997 and 2012, scoring 5,515 runs at an average of 30.30.
CSA Chief Executive Pholetsi Moseki thanked Boucher for his efforts in the role, saying: "We would like to thank Mark for the time and effort he has invested in South African cricket as the head coach over the past three years.
"He has helped navigate us through some rough waters following the departures of so many senior players through retirement and has helped lay some strong foundations for the next generation of Proteas.
"We are extremely grateful to him for the work he has done and would like to wish him well with the next chapter of his career."
CSA also confirmed it "will in due course announce its intentions regarding a successor to Mr Boucher".