JOHANNESBURG - A direct-hit run-out of Graeme Smith ended a century opening partnership as South Africa fought to stave off defeat on the fourth day of the first Test against India at the Wanderers Stadium on Saturday.
Set to make an improbable 458 to win, South Africa reached 2-138 at stumps.
They had reached 108 without loss with both Smith and Alviro Petersen batting with increasing confidence.
But Smith, on 44, went for a risky single after he punched a ball from Ravichandran Ashwin to mid-on.
Ajinkya Rahane fielded superbly and threw down the stumps at the bowler's end, to the acclaim of his teammates.
Smith's dismissal was soon followed by Hashim Amla, bowled for four ducking a short-pitched delivery from Mohammed Shami.
The ball was one of several the kept low at the golf course end of the pitch.
Petersen, who scored a half-century in his team's second innings for the first time in 27 Tests, was 76 not out at stumps with Faf du Plessis on 10.
The Indians were all out for 421 after lunch, leaving South Africa to negotiate 45 overs before the close of play as well as the whole of Sunday.
Cheteshwar Pujara and Virat Kohli took their third wicket stand to 222 before Pujara was caught behind off Jacques Kallis for 153.
Kohli fell for 96, caught behind cutting at off-spinner JP Duminy.
The South African bowlers, who had endured a torrid third afternoon at the hands of Pujara and Kohli, came back strongly despite being without the injured Morne Morkel.
India lost four wickets while scoring 74 runs in 28.2 overs before lunch.
At that stage India were 394 ahead but Dhoni decided not to declare and the innings continued until mid-afternoon.
Zaheer Khan was the main beneficiary of the decision to bat on and hit a breezy 29 not out, which included sixes off leg-spinner Imran Tahir and fast bowler Dale Steyn.
Steyn, the world's number one ranked Test bowler, had one of his poorest matches. He failed to take a wicket in the second innings and conceded 104 runs in 30 overs. He had match figures of one for 165.
Steyn's new ball partner Vernon Philander finished with three for 68, the same figures as all-rounder Kallis, who had to carry a bigger than usual bowling load in the absence of Morkel, who sprained his right ankle while fielding before lunch on Friday.