Outstanding centuries from Quinton de Kock and captain AB de Villiers helped South Africa coast to a series-clinching 82-run win over Sri Lanka in the third and final one-day cricket international in Hambantota.
South Africa, winning the toss and batting first, raced to 339-5, their highest ODI total against Sri Lanka.
In response, Sri Lanka made a blistering start with openers Kusal Perera (37) and Tillakaratne Dilshan (30) scoring 57 off five and a half overs before the innings fell apart and they were all out for 257 in 44 and a half overs.
Man of the match De Villiers hit a sparkling 108 of 71 balls in reaching his 17th ODI hundred as the Sri Lankan bowlers struggled to find the right line, while battling against the strong winds that blew across the pitch.
De Kock and Hashim Amla (48) gave South Africa the base on which to build their record total with a stand of 118 for the first wicket.
De Villiers then came to the crease and helped put the game beyond Sri Lanka's reach as he and De Kock hit 116 off 91 balls.
Ryan McLaren was the pick of the South African bowlers, taking three wickets for 37.
South Africa won the first ODI in Colombo by 75 runs and Sri Lanka won the second at Pallekele by 87 runs.
Amla was named Man of the Series for his two centuries in the first two ODIs and 48 in the third.
The two teams will meet in a two-Test series starting at Galle on July 16.