South Africa snatched a dramatic one-run victory in the opening one-day international following a stunning collapse from Pakistan in Sharjah.
Pakistan looked to be cruising in pursuit of South Africa's 183 all out as they progressed to 164 for four in the 41st over.
However, they lost their final six wickets for the addition of just 17 runs as the Proteas stormed back to claim the win.
Paceman Wayne Parnell added three top-order wickets to go with his 56 with the bat earlier on yet Imran Tahir caused much of the late devastation as he claimed three of the six wickets to fall.
Lonwabo Tsotsobe also grabbed two scalps during the collapse before Morne Morkel clinched the win when he bowled Mohammad Irfan for two.
Earlier, Pakistan's spinners looked to have put their side in charge after South Africa had won the toss and opted to bat first.
Slow bowlers Saeed Ajmal and Shahid Afridi combined for seven wickets as South Africa were bowled out with a ball to spare in their innings.
It would have been an even poorer looking effort from AB de Villiers' side if it had not been for number eight Parnell, who struck six fours and a six as he recorded his first international half-century.
The second of the five-match ODI series takes place in Dubai on Friday.