South Africa beat Pakistan by six wickets in the fifth and final one-day international at Willowmoore Park on Sunday to win the series 3-2.
South African captain AB de Villiers hit an unbeaten 95 to help guide his side past Pakistan's 205 all out.
De Villiers, who was dropped on one, overcame some hostile bowling on an unpredictable pitch as South Africa chased down the Pakistani total with six overs to spare.
Pakistan: 205 all out off 49.1 overs (Kamran Akmal 48; McLaren 3-32)
South Africa: 208-4 off 44 overs (AB de Villiers 95; Mohammad Irfan 2-38)