Wanindu Hasaranga dismissed Aiden Markram, Temba Bavuma, and Dwaine Pretorius in his historic hat-trick which spanned across two overs.
He castled Markram on the last ball of the 15th over as the batsman missed the ball while looking to work it away on the leg side. Wanindu Hasaranga returned to bowl the crucial 17th over and struck on the first two deliveries.
On the first ball, he had the Protea skipper, Bavuma, holed out to deep mid-wicket to a terrific jumping catch from Pathum Nissanka. On the second ball, with the required rate climbing, Pretorius went for the big shot but mistimed it and didn’t find the distance, and found Rajapaksa at long-on.
South Africa steal a last-over thriller
Chasing 143, South Africa were given a double blow by Dushmantha Chameera, who dismissed both openers, Quinton de Kock and Reeza Hendricks. Skipper Bavuma and Rassie van der Dussen began to build a partnership but the latter got run out after confusion between the pair.
Aiden Markram, riding on the form of the previous game, started attacking with Bavuma, but the right-hander was bowled by Wanindu Hasaranga before the death overs.
Bavuma hammered a six off Chameera but got out to Hasaranga, and so did Pretorius, leaving 25 to be needed from 12 balls. Kagiso Rabada lofted Chameera for a maximum and David Miller cleaned up the chase in the last over with two big sixes off Lahiru Kumara.