Cape Town - The Proteas have won the first ODI against Sri Lanka with Kagiso Rabada and Tabraiz Shamsi setting up victory with some inspired bowling.
South Africa won by 5 wickets after bowling out Sri Lanka for 193 and following that up with 195/5.
And it could have been far worse for the home side after Rabada (4/41), Lungi Ngidi (1/29) and a runout had reduced them to 36/5.
Kusal Perera (81) and Thisara Perera (49) went about rebuilding the innings with a partnership of 92 before Shamsi brought Thisara's innings to an end.
Shamsi ended with 4/33.
The Proteas started their chase in positive fashion racing to 31 in the 5th over before Hashim Amla departed for 19, bowled by Akila Dananjaya.
Dananjaya struck with his very next ball, removing Aiden Markram for a golden duck to leave himself on a hat-trick.
South African skipper Faf du Plessis saw off the hat-trick ball and together with Quinton de Kock, went about rebuilding the innings.
The pair put on 86 before De Kock miscued a sweep to be caught off the bowling of Dananjaya for 47.
Du Plessis followed 12 runs later, caught behind off Lakshan Sandakan also for 47 leaving the Proteas on 129 for 4, still needing 65 for victory.
Although David Miller fell for 10, veteran JP Duminy (53*) played positively to see the Proteas home.
The Proteas lead the five match series 1-0 with the second ODI taking place on August 1.