The Pakistani cricketers have beaten South Africa by one run in their second ODI in Port Elizabeth to take their one-day series.
In a match reduced to 45 overs Pakistan scored 262 with Ahmed Shehzad making 102.
Dale Steyn continued his excellent recent form with the ball to record career-best figures of six for 39.
South Africa finished on 261 for six with Hashim Amla making 98.
The third and final one-day international will be played in Pretoria this weekend.