Theunis de Bruyn scored a defiant maiden Test century but Rangana Herath spun Sri Lanka to a 199-run victory in Colombo to whitewash South Africa on day four.
Sri Lanka needed just five wickets to complete a convincing 2-0 series win on Monday, but De Bruyn and Temba Bavuma showed some much-needed resistance to keep the hosts waiting.
De Bruyn (101) played with patience in a superb 232-ball innings, putting on 123 for the sixth wicket with Bavuma (63) under pressure from the potent Sri Lanka spinners.
Herath came to the fore yet again, though, striking twice just before lunch and finishing with figures of 6-98 - his 34rd five-wicket Test haul - to eventually dismiss the tourists for 290.
Suranga Lakmal, who bowled only two overs in the match, has now won all three Tests since stepping in to replace suspended captain Dinesh Chandimal.
It's a wrap! Sri Lanka beat South Africa by massive 199 runs and seal the 2-match series 2-0!— Sri Lanka Cricket (@OfficialSLC) July 23, 2018
SA 124 & 290 (86.5 Ovs, Herath 6/98) v SL 338, 275/5dhttps://t.co/ne7t5sHYOe #SLvSA #LionsRoar #OneTeamOneNation pic.twitter.com/pwwiiIBiKk
De Bruyn, promoted to number three in his sixth Test, was solid in defence and took every opportunity to attack after South Africa resumed on 139-5, reaching his 50 by punching Dilruwan Perera to the cover boundary.
Bavuma took a more positive approach, sweeping with assurance and striking Akila Dananjaya to the ropes twice in an expensive over.
The diminutive right-hander made it through to his half-century when he swept Herath for a single, but the slow bowler had him caught behind to end a long partnership, then removed Quinton de Kock just before the interval.
De Bruyn continued to tick along with support from Kagiso Rabada, who danced down the track to launch Herath for a huge straight six.
The excellent De Bruyn reached three figures by glancing Herath to the fine-leg boundary but was on his way four balls later, bowled offering no shot to gift the left-armer a fifth wicket in the innings.
Dilruwan (2-90) saw the back of Rabada for 18 and Danushka Gunathilaka took a high catch to consign South Africa to defeat as Dale Steyn failed in his attempt to hit Herath for a second six.
21 de agosto 2018
|Championship Review: Leeds go top, QPR problems mount|
|Ronaldo shares snap of ´Juventus family´|
|Aguero is the Premier League´s best foreign import, says Shearer|
|Real Madrid warned they must pay Rodrigo´s €120m release clause|
|England´s Broad fined for Pant rant|
|India on brink of victory after brilliant Bumrah halts Buttler|
|Serena Williams elevated to 17th seed at US Open|
|Kombouare signs new two-year Guingamp contract|
|Scaloni unclear on Messi´s long-term Argentina plans|
|F1 Raceweek: Gasly and Alonso restore focus at Spa|
|Nouri able to communicate, brother reveals|
|Pjanic extends Juventus contract to 2023|
|Odegaard joins Vitesse in latest loan from Real Madrid|
|Luck ´sort of happy´ with sack from Suggs|
|Manchester United´s Sanchez will ´be back soon´|
|Former Giants star Cruz announces retirement|
|RFU set Cipriani disciplinary date despite RPA complaints|
|Spalletti fined €10,000 for ´gravely offensive´ referee comments|
|IndyCar driver Wickens has spinal surgery after Pocono crash|
|Tiger: No doubt this is one of my best years|
|Vice-captain Tiger trying to remain objective in Ryder Cup conversations|
|Ronaldo won´t win Serie A by himself, warns Allan|
|Moeen sends message to England selectors with double century|
|Brunt calls time on Northern Ireland career|
|Tottenham´s Janssen sidelined after foot surgery|
|Liu Xiang breaks women´s 50m backstroke world record at Asian Games|
|Atletico Madrid winger Vitolo suffers knee ligament damage|
|Leverkusen teen Havertz aiming to emulate idol Ozil|
|Beckham to be honoured with UEFA President´s Award|
|CPS drops Hillsborough charges against Bettison|
|Who can take over from Federer, Nadal & Djokovic? Agassi backs Zverev, Kyrgios|
|´Freak incident´ rules Dragons´ Vaughan out for season|
|Kompany: Different Manchester City must not be complacent|
|Toyota withdraw appeal over Alonso´s Silverstone disqualification|
|Manchester City offload defender Denayer to Lyon|
|RPA want RFU to drop Cipriani charge|
|Cheika still the right man for Australia - Polota-Nau|
|Bolt not giving up on Manchester United dream|
|All Blacks must improve ´average´ set-piece, says Smith|
|Raiola hits back at Scholes following Pogba criticism|
|Indians top Red Sox in series opener|
|Struff stuns Cecchinato, Jarry reaches last 16|
|I´ll prove people wrong - Bolt completes first Mariners training session|
|Former champ Kvitova tops Radwanska, Pliskova ousted|
|Sad if it´s Filipe Luis´ last game for Atletico - Oblak|
|White Sox manager Rick Renteria hospitalised before game|
|Carragher: Van Dijk can become Liverpool legend|
|No timetable for Sale return from shoulder injury|
|This is a partnership - Rodgers on contract negotiations with Packers|
|Eagles QB Wentz unsure he´ll be cleared to play opener|
|Balotelli staying at Nice|
|It wasn´t a penalty, says Hodgson as Palace boss fumes at refereeing decisions|
|Salah can play much better - Klopp demands more from Liverpool star|
|Gasly to Red Bull: Vettel, Verstappen and the drivers who took their Toro Rosso chance|
|Klopp in the dark on Karius future amid links to Besiktas|
|Simeone pleased with draw after rigours of Super Cup|
20 de agosto 2018
|Captain Reus saves Dortmund in DFB-Pokal|
|I couldn´t care less - Klopp rejects title challenge talk|
|Ailing Bairstow keen to aid England´s unlikely victory bid at Trent Bridge|
|Redskins secure Peterson signing|
|Manchester City goalkeeper Bravo suffers ruptured Achilles|
|Crystal Palace 0 Liverpool 2: Milner and Mane secure victory at Selhurst Park|
|Whyte takes aim at ´coward´ Fury ahead of Wilder showdown|
|Jets delighted with Darnold, open to trading Bridgewater|
|Gasly to replace Ricciardo at Red Bull|
|Valencia 1 Atletico Madrid 1: Rodrigo strikes to deny Simeone´s side|
|Injured Halep withdraws from Connecticut Open|
|Cipriani fined £2,000 by Gloucester|
|Mourinho will be sacked before Christmas, says Sharpe|
|England face record chase after Kohli smashes India to huge lead|