David Miller's superb unbeaten 85 was not enough for South Africa as Pakistan won the T20I series decider in Lahore.
Dwaine Pretorius produced South Africa's best-ever T20I figures as the tourists blew away Pakistan by six wickets to draw level in their three-match series.
Mohammad Rizwan struck his maiden IT20 century to pave the way for Pakistan's tense three-run win over South Africa in the series opener in Lahore.
Pakistan blitzed South Africa with the new ball to seal a 95-run victory in the second Test and claim the series 2-0.
South Africa will require 243 more runs on day five of the second Test in Rawalpindi to beat Pakistan and earn a series draw.
Pakistan lead South Africa by 200 runs after day four of a finely-balanced second Test match in Rawalpindi.
Pakistan reduced South Africa to 106-4 in the second Test after Anrich Nortje had taken 5-56 in the hosts' 272 all out.
Babar Azam and Fawad Alam put on an unbeaten century stand to rescue Pakistan from early trouble on a rain-shortened first day of the second Test with South Africa.
Pakistan head coach Misbah-ul-Haq is open to to change for the second Test against South Africa, despite their first-Test win.
Pakistan have left Mohammad Hafeez out of the squad for their T20I series against South Africa after a disagreement over quarantine arrangements.
Nauman Ali completed a five-wicket haul on debut before Pakistan reached their target of 88 in the first Test against South Africa.
South Africa closed day three of the first Test on 187-4 with a lead of 29 despite fifties from Aiden Markram and Rassie van der Dussen after Yasir Shah bagged 3-53.
Fawad Alam scored a brilliant century to put Pakistan on top after the second day of the first Test against South Africa in Karachi.
Pakistan restricted South Africa to 220 all out, but the home side closed on 33-4 in reply on day one of a fast-moving first Test in Karachi.
Fawad Alam, Sajid Khan, Wiaan Mulder - the players to watch as South Africa tour Pakistan for the first time since 2007.
Pakistan named nine uncapped players in their Test squad for the two-match series at home to South Africa.