South Africa secured top position in the ICC Test rankings as they held on to draw the second Test with Sri Lanka in Colombo.
The Proteas, who started the final day on 38-1 in pursuit of a nominal 369 for victory, finished on 159-8 at the Sinhalese Sports Club Ground as they dug in for a draw.
South Africa, who won the series 1-0 after victory in the opening match in Galle, now usurp Australia at the top of the standings.
The tourists took Dean Elgar for 13 in a truncated morning session, the first of three wickets for Dilruwan Perera.
They slipped to 104-4 at tea with Quinton de Kock (37) and AB de Villiers (12) falling to Rangana Herath.
|South Africa 2nd Innings: 159 for 8 (111 overs)|
|Petersen||c Vithanage||b Herath||0||21||25|
|Elgar||b D Perera||13||66||65|
|de Kock||c Vithanage||b Herath||37||93||92|
|Amla||c M Jayawardene||b D Perera||25||168||159|
|de Villiers||b Herath||12||81||67|
|du Plessis||c M Jayawardene||b Herath||10||47||49|
|Duminy||lbw||b D Perera||3||57||65|
|Steyn||c Dickwella||b Herath||6||30||28|
|Extras||3nb 0w 4b 15lb||22|
The nerves began to set in as captain and first-innings centurion Hashim Amla (25) fell to Perera in the fourth over of the evening session.
Just four overs after that, Faf du Plessis (10) became Herath's fourth wicket of the innings.
Later, in the first over of the final hour, JP Duminy was trapped lbw by Perera after a painstaking three.
It took a further nine overs before Herath picked up his fifth wicket, inducing Dale Steyn to edge behind for six.
However, Vernon Philander (27) and Imran Tahir (4) saw out the final 20 minutes to secure top spot in the world.
Like the new article format? Send us feedback!