Pakistan leveled their five-match one day series with South Africa, as a brilliant innings from Imran Farhat inspired the visitors to a three-wicket victory at Kingsmead.
A late wobble gave the Proteas a chance of a series victory, but Farhat's composed 93 all-but saw his side home after a fine bowling display from his colleagues.
Mohammad Irfan got things rolling for Pakistan with two wickets in two balls at the start of the match, sending Hashim Amla and Colin Ingram back the hutch with the score at 0-2.
But, having won the toss, South Africa showed some resistance, with AB de Villiers and David Miller hitting half centuries. Robin Peterson chipped in with 25 not out, as a competitive total of 234-9 was posted in 50 overs.
The Pakistan chase wasn't without incident though, with Mohammad Hafeez dismissed for 'obstructing the field'. The opener blocked the stumps when a run-out looked on the cards.
Kamran Akmal and Younis Kahn also fell to leave the score at 33-3, but a composed 80 from man-of-the-match Misbah-ul-Haq swung the game back in his side's favour.
Late wickets fell and Dale Steyn remained economical throughout, but victory came with eight balls remaining as Pakistan made it 2-2 in the series, with everything to be decided at Benoni on Sunday.