Tillakaratne Dilshan starred with both the bat and the ball as Sri Lanka crushed South Africa by 87 runs in their second one-day cricket international in Pallekelle to draw the three-match series level at 1-all.
Dilshan smashed 86 off 90 balls and also took three wickets for 40 runs to set the stage for a Sri Lankan victory.
Swing bowler Lasith Malinga chipped in with a valuable 4 for 24 as South Africa were bowled out for 180 off 38.1 overs while chasing Sri Lanka's 267 all out.
In-form opener Hashim Amla fought back brilliantly, making a 102-ball 101, but failed to find support from the other batsmen, only two of whom could manage scores in double figures.
The third and final game will be played in Hambantota on Sunday.