Pakistan won its first series against South Africa since 2003 by 2-0 with a 95-run victory in the second Test on the fifth and final day in Rawalpindi on Monday.
Set 370-run to win South Africa were bowled out for 274 with Pakistan medium pacer Hasan Ali taking 5-60 — recording his best match figures of 10-114.
Opener Aiden Markram scored a fighting 108 and Temba Bavuma 61.
Markram hit a century to help the Proteas recover from Hasan’s double strike in the morning session.
He drove the last ball before lunch from Fawad Alam to wide mid-on for a single to reach his fifth Test century — the first outside South Africa.
Bavuma hit 44 not out as the pair guided South Africa to 219-3, needing another 151 runs in pursuit of a daunting 370-run target in a possible 65 overs.
But after the break, the visitors lost quick wickets in succession, with most of the damage being done by Shaheen Shah Afridi and Hasan Ali.
South Africa were all out for 274, 95 runs shy of the target.
Both teams had been involved in a keen battle for victory as Pakistan was eyeing a first series win over South Africa since 2003 while the tourists pinned hopes on their batsmen to get the highest run chase at this ground.
No team has ever chased more than the 369 runs that Australia achieved against Pakistan in a 1999 Test at Hobart.
The best chase at Rawalpindi Cricket Stadium in ten previous Tests is 200 scored by Sri Lanka in 2000.
Resuming the day on 127-1, South Africa saw Dussen bowled off a beautiful inswinger by Hasan — only the third ball of the day — while Du Plessis was leg-before to the same bowler in the fifth over of the morning. It capped a miserable series for the experienced Du Plessis who managed just 55 in four innings.
Hasan had figures of 5-60 by the end of the innings, including the key wicket of century-maker Markram.
Pakistan won the first Test in Karachi by seven wickets.