An explosive unbeaten 85 from David Miller and some hostile bowling by the fast bowlers helped South Africa to beat Sri Lanka by 56 runs in Pallekele on Friday and stay alive in the five-match series.
South Africa defended their moderate total of 223-7 by dismissing Sri Lanka for 167 in the 44th over, despite Thisara Perera hitting Robin Peterson for 35 runs off the 33rd over, the second most expensive in ODI history.
The left-hander hit five sixes and a four, with a wide off the second ball adding to the carnage.
Much of the damage had been done earlier however, with fast bowler Lonwabo Tsotsobe taking four for 22, well-supported by Morne Morkel, who went wicketless but put the Sri Lankan batsman under pressure.
The visitors struggled for much of their innings but were given much needed impetus by Miller whose unbeaten 85 off 72 balls included five sixes and four fours.
He paced his innings until the 47th over when, along with Ryan McLaren scored 38 off the final two overs, with their unbroken eighth wicket partnership putting on 69 runs.
South Africa, who had lost the first two one dayers, had earlier been pegged down by spinner Ajantha Mendis, who finished with three for 35.
Their bowlers took advantage of a pitch that had pace and bounce, with Morkel unlucky not to be among the wickets following some unplayable deliveries.
Tsotsobe, playing his first game of the series, reaped the rewards from the other end, getting rid of Tillakaratne Dilshan, Upul Tharanga and Kumar Sangakkara in his first spell before returning to claim the wicket of Sri Lanka captain Angelo Mathews.
The Sri Lankan innings was in tatters at 93 for seven, but Perera's cameo innings of 65 off 49 balls delayed the inevitable.
He was caught on the long-off boundary going for his sixth six, having also hit five fours, and along with Rangana Herath put on 72 for the eighth wicket.
The fourth match will be played at the same venue on Sunday, with the fifth and final match in Colombo.
A Petersen c Sangakkara b Malinga 8
Q de Kock c Sangakkara b T Perera 20
JP Duminy b T Perera 23
AB de Villiers c Sangakkara b Mendis 47
F du Plessis run out 16
F Behardien b Mendis 2
D Miller not out 85
R Peterson b Mendis 3
R McLaren not out 14
Extras: (lb-3, w-2) 5
Total: (seven wickets, 50 overs) 223
Fall of wickets: 1-14, 2-50, 3-53, 4-95, 5-100, 6-148, 7-154.
Did not bat: M Morkel, L Tsotsobe.
Bowling: Malinga 10-0-57-1 (w-1), Mathews 5-1-17-0, Dilshan 10-0-39-0 (w-1), T Perera 8-0-51-2, Mendis 10-0-35-3, Herath 7-1-21-0.
U Tharanga c A Petersen b Tsotsobe 5
T Dilshan c de Villiers b Tsotsobe 6
K Sangakkara c Duminy b Tsotsobe 0
M Jayawardene b R Peterson 24
D Chandimal c de Kock b McLaren 29
A Mathews c de Villiers b Tsotsobe 14
A Perera c de Villiers b Behardien 1
T Perera c du Plessis b Behardien 65
R Herath not out 12
L Malinga b Behardien 0
A Mendis c Tsotsobe b Duminy 0
Extras: (b-1, lb-4, w-6) 11
Total: (all out, 43.2 overs) 167
Fall of wickets: 1-14, 2-14, 3-16, 4-71, 5-78, 6-81, 7-93, 8-165,
Bowling: Morkel 8-1-29-0 (w-1), Tsotsobe 7-2-22-4 (w-1), McLaren 6-1-18-1 (w-2), Peterson 7-0-51-1 (w-1), Duminy 9.2-1-23-1, Behardien 6-0-19-3 (w-1)
Result: South Africa won by 56 runs
Sri Lanka lead the five-match series 2-1.
Image: David Miller
Photograph: Christopher Lee/Getty Images