Captain AB de Villiers smashed an unbeaten 101 in his 200th One-Day International to lead South Africa to a five-wicket victory over England and a 3-2 series win at Newlands on Sunday.
After being sent in to bat, England spluttered to 236 all out in 45 overs despite a second ODI century of his career for opener Alex Hales.
South Africa were in early trouble as they slumped to 22-3 in their reply but a magnificent fourth wicket stand of 125 between De Villiers and Hashim Amla (59) steadied their ship and the captain was there at the end to finish it off as they reached their target with 36 balls remaining.
De Villiers’ 24th ODI century came from 94 balls with 11 fours and a six, and would prove the difference between the sides.
South Africa had been in early trouble when Reece Topley (3-41) tore through their top-order with the wickets of Quinton de Kock (4), Faf du Plessis (0) and Rilee Rossouw (4).
But the experienced pair of De Villiers and Amla showed patience and skill to take the game away from England and deny them the chance of becoming the first side in 14 years to win a test and ODI series in South Africa.
Instead, the Proteas are the first team since Pakistan in 2005 to come back from 2-0 down in an ODI series and claim victory, and just the fourth in the history of the 50-over game.
Hales had scored half-centuries in each of the four previous matches in the series but finally converted to three figures, to his obvious relief.
His 112 came from 128 balls and included 14 fours as he showed admirable patience on a wicket that was not coming onto the bat as he might have liked.
The next highest score in the England innings was a brisk 29 from Ben Stokes as a mixture of poor shot selection and accurate home bowling ensured the touring side lost wickets at regular intervals.
Hales put on 61 for the second wicket with Joe Root (27) and 70 for the fourth with Stokes, but there was little else of substance in the innings as captain Eoin Morgan (2) again failed.
J. Roy lbw b Tahir 8
A. Hales c Rossouw b Rabada 112
J. Root lbw b Tahir 27
E. Morgan c de Kock b Wiese 2
B. Stokes b Rabada 29
J. Buttler b Rabada 0
M. Ali c Behardien b Abbott 12
C. Woakes c Abbott b Wiese 0
A. Rashid c Rabada b Wiese 9
S. Broad c de Villiers b Tahir 13
R. Topley not out 1
Extras (b-4 lb-8 w-11)23
Total (all out, 45 overs) 236
Fall of wickets: 1-15 J. Roy,2-76 J. Root,3-85 E. Morgan,4-155 B. Stokes,5-156 J. Buttler,6-181 M. Ali,7-183 C. Woakes,8-192 A. Rashid,9-223 A. Hales,10-236 S. Broad
Bowling: K. Abbott 9 - 0 - 28 - 1(w-1), K. Rabada 9 - 1 - 34 - 3(w-3),I. Tahir 10 - 0 - 53 - 3(w-1), C. Morris 8 - 0 - 59 - 0(w-4),D. Wiese 9 - 0 - 50 - 3(w-2)
Q. de Kock c Buttler b Topley 4
H. Amla st Buttler b Ali 59
F. du Plessis b Topley 0
R. Rossouw c Hales b Topley 4
A. de Villiers not out 101
F. Behardien c Stokes b Rashid 13
D. Wiese not out 41
Extras (nb-1 w-14) 15
Total (for 5 wickets, 44 overs) 237
Fall of wickets: 1-14 Q. de Kock,2-14 F. du Plessis,3-22 R. Rossouw,4-147 H. Amla,5-166 F. Behardien
Bowling: S. Broad 9 - 1 - 34 - 0(w-1), R. Topley 7 - 1 - 41 - 3(w-4), C. Woakes 5 - 0 - 32 - 0(w-1), B. Stokes 5 - 0 - 34 - 0(nb-1 w-2), A. Rashid 10 - 0 - 59 - 1(w-6), M. Ali 8 - 1 - 37 – 1.