South Africa beat Pakistan by nine wickets on the fourth day of the second Test at Newlands on Sunday.
Dean Elgar hit 24 as South Africa took 9.5 overs to pass the target of 41 for the loss of one wicket and take a winning 2-0 lead in the three-match series.
However, it wasn't as simple as South Africa was hoping, with the Proteas losing stand-in opener Theunis de Bruyn for 4 and seeing Hashim Amla retire hurt on 2 before they reached the simple target.
De Bruyn was opening in place of Aiden Markram, who was injured fielding on the third day.
South Africa's fast bowlers took their team to the brink of another series win at home as Pakistan was bowled out for 294 right at the end of day three of the second test on Saturday, leaving the Proteas needing just 41 runs for victory.
Asad Shafiq (88) and Shan Masood (61) had begun to fightback for Pakistan earlier yesterday with a partnership of 132 as the tourists faced a deficit of 254 when they started their second innings.
Babar Azam added 72 and the Pakistan tailenders clung on to the very end, eventually passing South Africa's first-innings total to avoid an innings defeat in a small measure of pride for them.
Pakistan lost the first test inside three days and failed to get to 200 in any of its three innings in this series before Saturday.
Kagiso Rabada took 4-61 to lead South Africa's four-man pace attack and Dale Steyn had 4-85, but Steyn encapsulated South Africa's frustration at not getting the job done at the end and missing out on a five-wicket haul by throwing his arms up in the air angrily on numerous occasions as Pakistan's tailenders kept narrowly surviving.
Steyn removed Imam-ul-Haq at the start of the Pakistan innings, broke the Masood-Shafiq partnership, and also collected the wickets of tailenders Mohammad Amir and Yasir Shah to take his match haul to seven wickets.
Rabada, the top-ranked test bowler in the world, knocked the stuffing out of the Pakistan middle order and finally ended the innings when last man Shaheen Afridi skied a catch to Vernon Philander at midwicket.
South Africa's strong recent test record at home has been built on tough, fast-bowler friendly pitches that suit the South African attack and aggressive style of cricket but Pakistan coach Mickey Arthur complained the surfaces for the first two tests were “sub-standard” for batting and not good enough for test cricket.
The criticism has been rejected by the South African team.
Pakistan is not the first to struggle against South Africa's pace-laden attack, with India and Australia both subdued by it last year.
South Africa's tactics were clear for what will almost certainly be the series clincher at Newlands when the home team packed its lineup with four fast bowlers two of them ranked in the top four in test cricket and dropped spinner Keshav Maharaj.
The final test in Johannesburg starts Friday.