AB de Villiers hit a century as South Africa completed a 4-1 series win over Pakistan with a 117-run victory in the fifth one-day international in Sharjah.
Skipper De Villiers finished on 115 not out in his side's total of 268-7 after they had opted to bat first.
Pakistan were all out for 151 in 35.3 overs in reply, fast bowler Wayne Parnell taking 3-36.
South Africa lost Hashim Amla lbw for four to Mohammad Irfan (1-52) in the opening over but a half-century stand for the second wicket between Quinton de Kock (34) and Faf du Plessis (46) put them on track.
De Villiers, batting at number five, came to the crease at 62-3 in the 16th over after De Kock and JP Duminy (2) had departed in quick succession.
And South Africa's limited-overs skipper batted through, hitting 10 fours and three sixes in a 102-ball contribution, his 15th hundred in ODIs.
South Africa seamer Vernon Philander (2-23) struck twice and new-ball partner Lonwabo Tsotsobe (1-28) once to reduce Pakistan to 17-3 in the ninth over of their run chase.
Sohaib Maqsood resisted with 53, his second half-century in a row, but Pakistan collapsed again, going from 128-5 to 151 all out in less than six overs.
Parnell started the meltdown by having Shahid Afridi (9) caught and bowled and then added the wickets of Saeed Ajmal (1) and Irfan (0) in consecutive overs.
South Africa, who drew the preceding Test series between the sides 1-1, conclude their visit to the Middle East with a pair of Twenty20 internationals in Dubai on November 13 and 15.