Centurion:India took a 130-run first innings lead after bowling out South Africa were all out for 197 in the final session on day three of the first Test.
Mohammad Shami was the pick of the bowlers for India, taking five wickets for 44 runs in 16 overs.
Temba Bavuma top scored for South Africa with 52 off 103 balls
In the morning session, India lost seven wickets for 55 runs to be all out for 327.