India took command on Day 3 of the Test match as the hosts took a 326-run lead.
Mohammed Shami and Umesh Yadav took the first two wickets on Day 3 to send half-the-team back to the pavilion for a total score of 53.
Faf du Plessis (64) then built a partnership with Quinton de Kock (31), but the latter's dismissal proved to be the turning point again.
Keshav Maharaj (72) then steered South Africa's ship alongside Vernon Philander (44*) to take the Proteas total to 275.
Ravichandran Ashwin removed Maharaj and Rabada to bowl the Proteas out.
IPL 2020 recap: From MI's dominance to young guns firing again - 10 big talking points
India TV's team of IPL 2020: KL Rahul leads the star-studded lineup
'Bola tha inki ganit weak hai': Rohit Sharma hilariously reacts to his odd-even ad ahead of IPL 2020
I was expecting to be selected this time, couldn't even train that day: Suryakumar Yadav
IPL 2020 vs PSL 2020 - Here's how much prize money champions Mumbai Indians and Karachi Kings won
KL Rahul will have to take some blame for not finding KXIP's ideal playing XI, feels Aakash Chopra