Image courtesy of: ESPNcricinfo
South Africa were set a target of 41 to win on the third day in Cape Town after Dale Steyn and Kagiso Rabada sliced through Pakistan’s batting line-up with four wickets apiece.
Starting off the day on 382/6, South Africa added 12 runs to their overnight score before Quinton de Kock was dismissed by Mohammad Amir for 59, which came off 78 balls and included eight boundaries.
Amir then cleaned up Vernon Philander and Rabada for 16 and 11 respectively.
South Africa were eventually bowled out for 431, which gave them a 254-run lead, when Steyn was removed by Shaheen Shah Afridi for 13.
Amir and Afridi picked up four wickets apiece, while Mohammad Abbas and Shan Masood chipped in with one wicket each.
Trailing by 254 runs, Pakistan lost opener Imam-ul-Haq early on as he was caught by Dean Elgar at third slip off the bowling of Steyn for six runs.
Azhar Ali was trapped lbw off the bowling of Rabada for six runs before Asad Shafiq and Masood steadied things with a 132-run partnership, during which both batsmen surpassed their fifties.
Masood went on to score a 110-ball 61, which included nine boundaries, before he was caught behind off the bowling of Steyn.
Shafiq went on to score 88, which came off 118 deliveries and included 12 boundaries and a six, before he was caught behind off the bowling of Philander.
Pakistan began to lose wickets at regular intervals once Shafiq was gone, but Babar Azam put up a valiant fight as he struck an 87-ball 72, which included 15 boundaries.
Pakistan ultimately scored 294, which gave them a 40-run lead, before they were bowled out when Afridi was caught by Philander at midwicket off the bowling of Rabada for 14.
Steyn and Rabada took four wickets apiece, while Philander and Duanne Olivier claimed one wicket each.
As soon as Afridi was dismissed, stumps was called, meaning South Africa will begin their chase of 41 on Sunday at 10:30 local time or 08:30 GMT.