Debutant Lungi Ngidi claimed two late wickets on a costly day for India captain Virat Kohli, as South Africa closed in on a series victory in the second Test at Centurion.
India were set 287 to win after bowling the Proteas out for 258 on day four, Mohammed Shami (4-49) the pick of the bowlers but a stand of 141 from AB de Villiers (80) and Dean Elgar (61) put the Proteas in command.
Captain Faf du Plessis also weighed in with a patient 48 on a surface offering variable bounce, before Ngidi (2-14) and Kasigo Rabada (1-9) reduced the tourists to 35-3 at stumps - 252 runs short of their target.
Ngidi claimed the huge wicket of Kohli, who was earlier fined 25 per cent of his match fee for poor on-field behaviour on day three and looks set to preside over the top-ranked side's first Test series loss for three years.
De Villiers and Elgar had rescued South Africa from 3-2 to 90-2 on Monday and continued to frustrate India in the morning session, the latter not looking comfortable but gaining his reward for digging in when he drove Ishant Sharma to the extra-cover boundary to reach 50.
The brilliant De Villiers deserved a hundred, but the partnership finally ended when the former skipper gloved a rising Shami delivery through to Parthiv Patel and Elgar soon followed, pulling the same bowler to KL Rahul at deep square-leg.
South Africa were 163-5 - leading by 191 - when a pumped-up Shami removed Quinton de Kock (12), but Du Plessis grafted it out after Rahul put down a difficult chance to remove him and Vernon Philander (26) provided support before Ishant (2-40) sent him on his way.
Rabada hung around following Keshav Maharaj's early dismissal but fell before Du Plessis, who struck only four boundaries, was caught and bowled by Jasprit Bumrah (3-70) soon after the paceman gave him another life.
India found themselves deep in the mire after a first wicket for Ravichandran Ashwin (1-78) ended South Africa's second innings, Murali Vijay the first to go, chopping on to a Rabada delivery which kept low.
Ngidi then took centre stage with a hostile spell of fast bowling, although Rahul gifted the 21-year-old his first wicket, tamely steering a short and wide delivery to Maharaj at point.
The Durban-born new boy then claimed the prized scalp of Kohli, the first-innings centurion falling for only five after playing across the line to a delivery which angled in and unsuccessfully reviewed an lbw decision.
Parthiv (five not out) took a nasty blow in the ribs from a hostile short ball from Ngidi, but the wicketkeeper and Cheteshwar Pujara (11no) were still there at the close.
|Saints lock in Lawes to new deal|
|Adelaide United 1 Sydney 1: Debutant Le Fondre rescues a point|
|Madrid can´t look back, only forward - Lopetegui confident of revival|
|Wimbledon to introduce final-set tie-breaks|
|Abbas inspires Pakistan to series victory|
|Madrid boss Lopetegui hopeful on Bale availability|
|Mood is positive at Bayern, insists under-pressure Kovac|
|LeBron offers food for thought after losing Lakers debut|
|Bolt future not an immediate concern for Mariners|
|Hazard: I could finish my career at Chelsea|
|Buffon hoping to avoid Champions League final against Juventus|
|Wilshere not ready for West Ham return|
|Chelsea v Manchester United: Hazard better under Sarri than he ever was with Mourinho|
|The big Friday Premier League quiz|
|Khawaja suffers meniscal tear, doubt for India series|
|Babbel: Klopp must win trophies now at Liverpool|
|LeBron makes spectacular start on Lakers debut, but LA fall to Trail Blazers|
|Broncos thrash Cardinals to end losing streak|
|Price leads Red Sox past Astros and into World Series|
|LeBron makes fast start on Lakers debut with two massive dunks|
|Real Salt Lake 4 New England Revolution 1: Hosts boost play-off chances|
|Simmons gets triple-double in win over Bulls|
|´Ambitious´ Maguire wants Champions League football|
|Henry praises ´charismatic leader´ Falcao|
|WATCH: Cardinals WR Fitzgerald tackles former QB Warner on sidelines|
|Spurs right not to make signings – Pochettino|
|Icardi happy at Inter, close to contract renewal|
|This Week in U.S. Sports: Bosa leaves Ohio State while the World Series is almost set|
|Liverpool boost as Salah and Van Dijk join training|
|Cowboys discuss road woes, Prescott says team ´addressed the elephant in the room´|
|Isner scrapes through in Stockholm, Monfils eliminates Tsonga|
|Hinch says Altuve would be out with injury in regular season|
|WATCH: Schwarzenegger tells LeBron to make Lakers great again|
|LeBron tells Lakers coach Walton: I´m always fresh!|
|Mayweather should come back to fight me - Alvarez|
|Goerges battles past Vekic, Kasatkina wins all-Russian tie|
|Ask 32,000 Gibraltarians if the Nations League is meaningless - Styche|
|They´re going to speak about it for years - Azhar reflects on comical run out|
|Garcia in the mix as weather hits Andalucia Valderrama Masters|
|From lacking a ´football brain´ to signing a new contract – the Mourinho-Shaw saga|
|Alonso teases Indy 500 return as Hamilton reveals NASCAR temptation|
|Guptill ruled out of Black Caps´ UAE tour|
|UEFA investigating PSG-Red Star fan clashes|
|Just ´another weekend´ for champion-elect Hamilton|
|G League will offer $125K to top prospects in lieu of NCAA one-and-done route|
|Chargers defensive end Bosa ´a few weeks´ away from return, says father|
|Bale back in full Real Madrid training|
|Roma supporter found not guilty of inflicting GBH on Liverpool fan Sean Cox|
|´Fantastic´ Neuer will prove he´s still the best, says Lloris|
|Perez secures Force India stay|
|Australia wait on Khawaja scan|
|Shaw signs Manchester United extension|
|Jones lays down challenge to snubbed England star Cipriani|
|West Ham´s Pellegrini rejects Dzeko speculation|
|Emery fails to assure Ramsey of Arsenal future|
|Pakistan on course for victory after Babar 99 and farcical run out|
|Canelo ready to leave comfort zone to face Fielding|
|Eriksen ready for Tottenham return, Pochettino confirms|
|Titans coach rocked by Hurrell´s Rhinos switch|
|Rubin Kazan suspended from UEFA competition for FFP breach|
|Real Madrid could sack Lopetegui if results don´t improve, says Essien|
|On-court coaching would add to drama - Mouratoglou|
|Babbel lauds ´top class´ Ronaldo after Juventus switch|
|Carmelo Anthony: Rockets bench role challenging mentally|
|Maqsood preferred to Amir in Pakistan T20 squad|
|Make Ramsey Arsenal captain, don´t let him leave – Wilshere|
|Kaneria admits guilt in spot-fixing case|
|No coach can work miracles – Ibrahimovic defends under-fire Mourinho|
|Morgan earns England recall, Cipriani overlooked|
|Reavie leads CJ Cup, solid start from Koepka|