South Africa secured a first home series win since 2008 with victory over Sri Lanka in the final Test.
Sri Lanka, following on, were bowled out for 342 in Cape Town despite Thilan Samaraweera's dogged unbeaten 115.
Vernon Philander, Imran Tahir and Jacques Kallis shared nine wickets for South Africa, who were left chasing just two to win.
Alviro Petersen hit the only ball of the innings, a Dhammika Prasad no-ball, for four.
The tourists began the fourth day on 138 for four - 203 behind - but aroused their hopes of taking the game into a fifth day when Samaraweera and Angelo Mathews batted through the morning session.
Their stand of 142 was broken when Mathews was trapped lbw for 63 by a delivery from Philander that kept low.
Although Samaraweera completed a second century in as many Tests, off 201 balls, he could not protect the Sri Lanka tail.
Thisara Perera swung Tahir to long-on after contributing 30 to a seventh-wicket partnership worth 56, and Kallis accounted for Rangana Herath and Chanaka Welegedara either side of Tahir having Prasad stumped.
Kallis finished with 3-35 to go with his first-innings 224, Tahir returned figures of 3-106 and Philander claimed 3-54.
The series victory was South Africa's first on home soil since they beat Bangladesh in late 2008.