Opener Tillakaratne Dilshan hit a sparkling 74 not out off 51 balls to steer Sri Lanka to a six-wicket victory over South Africa in the third and final Twenty20 international on Tuesday.
South Africa won the three-match series 2-1 but Tuesday's success ensures Sri Lanka remain the number one T20 team in the world rankings.
Dilshan finished the match in style with a lofted sweep for six off Morne Morkel as Sri Lanka reached their target of 164, for the loss of four wickets, in 18.1 overs.
After winning the toss, South Africa hit 163 for three after captain Faf du Plessis, who hit 85, and JP Duminy (51 not out) put together the highest partnership for any wicket against Sri Lanka with 112 off 73 balls.
The pair came together after South Africa lost a wicket to the first ball of the match when Nuwan Kulasekara trapped Henry Davids leg before wicket with a big inswinger.
Du Plessis hit his career-best T20 score off 65 balls with 10 fours and three sixes before he was bowled by Suranga Lakmal.
In reply, Dilshan and Mahela Jayawardene got Sri Lanka off to a great start by putting on 67 off 35 balls.
Jayawardene made 33 before being dismissed by Wayne Parnell but Dilshan saw his side to victory with 11 balls to spare, hitting nine fours and two sixes.
South Africa lost the five-match one-day series 4-1.