The visitors posted a target of 226 runs and the Proteas managed to score 135 for two after 28 overs before the floodlight failure halted the final ODI, bringing DLS method into play and the hosts won the match by 41 runs.
Kusal Mendis looked in control and was the top scorer for Sri Lanka as he scored 56 runs to help the visitors put up a respectable total. However, his dismissal sparked a succession of wickets as Sri Lanka crumbled.
Sri Lanka was able to get Quinton de Kock's wicket early, breaking the wicket-keeper batsman's run of five consecutive fifty-plus scores in this series.
Then came in South Africa captain Faf du Plessis who formed a partnership of 70 runs with Aiden Markram. Du Plessis later lost his wicket to Thisara Perera, which brought Rassie van der Dussen to the field.
The duo played well until the match was stopped due to the failure of floodlights. Markram scored his career-best 67 not out and won the man of the match title.
Since the 2015 World Cup, this is Sri Lanka's fourth 0-5 loss in a bilateral series.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)