ICC World Twenty20 Super Eight Group E:
South Africa 130-5 (20 ovs) bt India 118-8 (20 ovs) by 12 runs
Highlights - South Africa retain 100% record
South Africa maintained their 100% record in the World Twenty20 with a 12-run win against India at Trent Bridge.
India had already been eliminated but a victory for them could have seen the South Africans deprived of top spot.
AB de Villiers struck seven fours in 63 from 51 balls and though his side were pegged back they still mustered 130-5.
India began well but slipped to a third straight defeat as South Africa ensured they would stay at Trent Bridge to face Pakistan in Thursday's semi-final.
The two innings showed marked similarities, both scoring 47 in the powerplay segments but both then restricted by the slow bowlers.
India looked on course as Gautam Gambhir and Rohit Sharma both hit three boundaries in the six overs, but Gambhir carved Johan Botha's second ball straight to deep cover.
Sharma and Suresh Raina quickly departed in the space of six balls and skipper Mahendra Dhoni was run out after charging three quarters of the length of the pitch in search of a bye before Yuvraj Singh sent him back.
Left-arm spinner Roelof van der Merwe turned some deliveries sharply, bowled 14 dot balls and deservedly collected the wicket of the big-hitting Yusuf Pathan, who mis-timed a drive low to short extra-cover.
We have adapted to all surfaces and we have showed how far we have come in terms of our thinking and our options
Yuvraj launched the first six of the match to leave 41 needed from the final 24 balls and when Harbhajan Singh smashed Morne Morkel down the ground for six more, the excitable Indian contingent in the crowd erupted once again.
An injury to Harbhajan necessitated a runner, and Dhoni marched out to rejoin Yuvraj, but after one more mix-up between the pair, Harbhajan smeared a Botha full toss to mid-wicket and suddenly the requirement was two per ball.
Yuvraj was caught behind in the penultimate over, and after the Indian fans filed away the South Africans completed victory in virtual silence.
It was another impressive result for Graeme Smith's side, and although their innings fluctuated on a slow surface they again showed their resilience.
After Herschelle Gibbs spectacularly inside edged on to his wicket in the second over and disturbed two stumps and the miniature camera inside, De Villiers played some delightful cuts and straight drives.
Yuvraj gave India's fans some hope with 25 off 24 balls
He hit four early fours and raced to 18 from just 10 balls, but the spinners began to wrestle back control on the slow surface and 55 deliveries went by without a boundary.
De Villiers briefly broke the shackles with consecutive fours to record his third Twenty20 international fifty in his 20th match.
Raina was the eighth bowler to be used, the fifth spinner, and he turned one past JP Duminy to create a stumping, while De Villiers finally succumbed to a steepling return catch from 20-year-old slow left-armer Ravindra Jadeja, who conceded only nine runs in his three overs.
De Villiers proved the difference, but South Africa were highly effective as a team unit and their ability to defend a modest total will not have been lost on their remaining rivals.
Smith was delighted with his team's resolve once again and said: "I think 130 on that wicket was a good total. The wicket was slow and the way we defended the total was excellent.
"We have adapted to all surfaces and we have showed how far we have come in terms of our thinking and our options.
"Our fielding was great. It was a great wicket for our slow bowlers. We needed them to take responsibility and they did just that."
Dhoni, who has been severely criticised following his team's failure to qualify, insisted his side had been fully focused, despite being already out of the competition.
"The team was up for it right from the warm-up," he said.
"But the batting really hasn't been up to the mark. With the batsmen, if the top three don't click it becomes very hard.
"The bowlers did well but we have a few things to work on when it comes to the batting."