South African captain Graeme Smith made a magnificent century to lead his team to a series-clinching victory on the fourth day of the third Test against England at Edgbaston on Saturday.
Smith made an unbeaten 154 as South Africa won by five wickets to take a winning 2-0 lead in the four-Test series.
It was South Africa's first series win in England since 1965 and ended a sequence of three series in the country in which they failed to capitalise after going one Test up.
South Africa were set to make 281, the highest successful fourth innings chase in a Test match at Edgbaston and South Africa's fourth-highest of all time.
The victory seemed unlikely when South Africa slumped to 93 for four, with two of the wickets falling to balls from Andrew Flintoff which the batsmen did not see.
But Smith survived the collapse in making his 16th Test ton and found able partners in AB de Villiers (27) who helped him put on 78 for the fifth wicket and Mark Boucher (45 not out), who shared an unbeaten 112-run stand for the sixth wicket.
South Africa took advantage of a tiring England team and claimed the available extra half hour at the end of an afternoon session which had already lasted for three hours.
Flintoff, who first swung the momentum towards England with a fiery spell on the second evening, made vital breakthroughs with full deliveries which the batsmen appeared not to see.
He trapped Neil McKenzie leg before for 22 after McKenzie and Smith put on 65 for the first wicket.
McKenzie appeared to lose the ball completely and was ducking when the ball hit him on the boot.
Jacques Kallis also ducked against a ball which struck him on the full on his right thigh in line with the stumps.
Kallis, bowled by a Flintoff yorker in the first innings which he admitted he did not pick up from the bowler's hand as it was delivered against the backdrop of the committee room balcony immediately above the sightscreen, showed his anger as he was given out leg before.
In between Flintoff's two wickets, Hashim Amla was leg before to an arm ball from left-arm spinner Monty Panesar.
Flintoff was rested after taking two for 28 in eight overs but Ashwell Prince was caught behind off James Anderson as South Africa crashed to 93 for four.
South Africa earlier bowled out England for 363 in their second innings.
Paul Collingwood was last man out for 135.England v South Africa 3rd Test close scoreboard
England, first innings, 231
South Africa, first innings, 314
England, second innings (overnight 297-6)
A. Strauss c Kallis b Morkel 25
A. Cook c Boucher b Ntini 9
M. Vaughan c Amla b Nel 17
K. Pietersen c De Villiers b Harris 94
I. Bell c Boucher b Ntini 20
P. Collingwood c Boucher b Morkel 135
A. Flintoff c Amla b Harris 2
T. Ambrose b Morkel 19
R. Sidebottom c Amla b Morkel 22
J. Anderson b Kallis 1
M. Panesar not out 0
Extras (b8, lb2, nb3, w6) 19
Total (98.2 overs) 363
Falls: 1-15 (Cook), 2-39 (Vaughan), 3-70 (Strauss), 4-104 (Bell), 5-219 (Pietersen), 6-221 (Flintoff), 7-297 (Ambrose), 8-363 (Sidebottom), 9-363 (Anderson)Bowling: Morkel 19.2-1-97-4 (3nb, 4w), Nel 20-3-79-1, Ntini 18-4-58-2 (2w), Kallis 20-5-59-1, Harris 21-3-60-2.
South Africa, second innings (need 281 to win)
G Smith not out 55
N McKenzie lbw b Flintoff 22
H Amla lbw b Panesar 6
J Kallis lbw b Flintoff 5
A Prince c Ambrose b Anderson 2
A de Villiers c Collingwood b Panesar 27
M Boucher not out 45
Extras (b10, lb8, nb2, w2) 22
Total (5 wkts, 80 overs) 283
Fall of wickets: 1-65 (McKenzie), 2-78 (Amla), 3-83 (Kallis), 4-93 (Prince), 5-171 (De Villiers)
Bowling: Sidebottom 10-1-26-0, Anderson 13-0-60-1 (2w), Panesar 33-3-91-2 (2nb), Flintoff 20-5-72-2, Pietersen 4-0-16-0
Result: South Africa won by 5 wickets
Man of the match: Graeme Smith (RSA)
Series: South Africa take a 2-0 winning lead
Remaining Test: The Oval, Aug 7-11
Umpires: Aleem Dar (PAK), S Davis (AUS). Match referee: R Madugalle (SRI)