Dimuth Karunaratne ploughed a lone furrow for Sri Lanka as South Africa took charge on the opening day of the first Test in Galle.
The opener carried his bat on Thursday as the hosts struggled to find any rhythm after opting to make their opponents bowl, Karunaratne finishing 158 not out as Sri Lanka were dismissed for 287.
Plenty of his partners made starts but could not push on, and Sri Lanka's total would have been even less competitive had last man Lakshan Sandakan not added a timely 25.
Kagiso Rabada proved South Africa's main threat with 4-50, while there was also a wicket for the returning Dale Steyn.
Left-arm chinaman Tabraiz Shamsi contributed 3-91 in his second outing as Sri Lanka toiled, only the impressive Karunaratne scoring big on a pitch that is expected to turn more and more as the game goes on.
Sri Lanka finished the day on a high, though, as Rangana Herath took advantage of the early spin to remove Aiden Markram before the close, South Africa finishing 4-1 at the beginning of their reply.
Stumps, Day 1: SA 4/1 after 4 overs. Elgar 4*, Maharaj 0*, trail by 283. Last wicket: Markram 0.— Cricket South Africa (@OfficialCSA) July 12, 2018
SL 287. Rabada 4/50, Shamsi 3/91, Philander 1/28, Steyn 1/54. #SLvSA #ProteaFire pic.twitter.com/r6uPlFI142
The initial signs looked positive for Sri Lanka as Karunaratne and Danushka Gunathilaka made a steady start, only for Rabada to find a beautiful line outside off stump to have the latter caught behind.
Dhananjaya de Silva helped push the score on to 70-1 but four quick wickets saw the hosts slump to 119-5 – Rabada and Steyn doing the damage as the Proteas' seamers found a good length.
Karunaratne kept his patient, watchful innings ticking over while panic ensued around him, bringing up his half century off 82 balls with a quick single.
He survived a scare soon after as Markram dropped him at short leg, and slowly pushed towards an eighth Test century.
A straight drive to the boundary off Shamsi took Karunaratne to three figures but by then Sri Lanka were eight wickets down and facing an uphill struggle to post a credible total.
The Karunaratne show! @IamDimuth carries his bat with 158*, the fourth Sri Lankan to do so in Test cricket, as the hosts are dismissed for 287 on day one in Galle.#SLvSA scorecard https://t.co/iKZgIHlw9a pic.twitter.com/XdTawzE1Hg— ICC (@ICC) July 12, 2018
Stand-in captain Suranga Lakmal and Sandakan gave him much-needed support for the final two wickets, Sri Lanka adding 63 as Karunaratne reached 150 for the fourth time in his career.
Eventually Sri Lanka's resistance came to an end as Shamsi had Sandakan stumped, but it left South Africa with a tricky four-over spell to navigate.
Markram was unable to do so as Herath drew him forward and found an edge that Angelo Matthews gobbled up at slip, but it was a rare disappointment on a productive day for the tourists.
|Caleta-Car race won by Marseille|
|Hurricanes hold off Chiefs to reach final four|
|Bairstow: Unfair to compare England Test and ODI teams|
|Criticism is a weapon of the weak – Dani Alves defends Neymar|
|Thomas drops shot as McIlroy endures testing morning|
|Hazard is Chelsea´s best player and we need him – Fabregas|
|Mercedes & Bottas agree multi-year deal|
|Neymar backs ´genius´ Ronaldo to make Serie A great again|
|Sanchez to face San Jose Earthquakes as Mourinho grows desperate in attack|
|Ibrahimovic to watch England at Wembley – Zlatan will honour Beckham bet|
|Cubs use five-run fifth inning to trump Cardinals|
|Manchester United 1 America 1: Mata salvages draw for Red Devils|
|Steelers´ Super Bowl window getting smaller - Brown|
|Neymar cares about PSG and will stay amid Real Madrid speculation|
|NFL, NFLPA at ´standstill agreement´ over anthem policy|
|Guardiola: It would´ve been a mistake for Jorginho to join City|
|Angels star Ohtani cleared to resume pitching|
|´I don´t give a f***´ – Cousins hits back at critics after Warriors move|
|Merritt leads Barbasol Championship|
|Ruud awakening for Ferrer in Bastad|
|Nibali withdraws from Tour de France with back fracture|
|Fabinho: I´ll try to convince Mbappe to join Liverpool|
|Beating Messi boosted France´s World Cup belief – Lloris|
|Carnoustie saving the worst until last|
|McIlroy´s youthful exuberance could be a bad sign for Carnoustie contenders|
|Saints triumph at second-placed Wigan|
|Anfield atmosphere sweetened Alisson on Liverpool|
|Bouchard reaches Gstaad quarter-finals|
|´What are you waiting for?´ - Alisson reveals Salah text messages|
|´Full package´ Alisson could not be missed - Klopp|
|Alisson to Liverpool: Brazil star becomes most expensive goalkeeper in history|
|Alisson to Liverpool: Brazilian´s stats blitz Mignolet, Karius|
|Liverpool sign Alisson in world-record deal|
|The Open 2018 diary: Spieth´s got ball skills as Finau proves the scratch golfer|
|Woods: Score doesn´t reflect how well I played|
|Can we go to Paris now? - Thomas in a hurry after conquering Alpe d´Huez|
|Thomas: I could have finished stronger|
|Kisner shines at baked Carnoustie as McIlroy, Rahm and Thomas loom|
|Sarri´s mentality made me a better footballer - Jorginho|
|Tax rates played a role in Ronaldo joining Juventus, says LaLiga president|
|Aggressive McIlroy doing it his way, not the fairway|
|I let him have it - Spinazzola ribs Ronaldo over Juve shirt number|
|Thomas makes it back-to-back wins|
|Ramos may remain for Spain but Luis Enrique promising surprises|
|Cazorla still playing through pain after Villarreal appearance|
|Vegas to Carnoustie - a hellish trip for Jhonattan|
|NFL training camp 2018: Five under-the-radar rookies to watch|
|Woods off to a flyer as Thomas charges|
|Sanchez given green light to join Man Utd tour|
|Greipel, Groenewegen and Gaviria latest sprinters to abandon Tour de France|
|Luis Enrique hopeful over Pique as he plots a Spanish evolution|
|I had a brain fart - Spieth disappointed with missed opportunity|
|I´ve sacrificed too much to quit, says injury-plagued Rossi|
|Klopp rejects Henderson´s plea to return early to Liverpool training|
|Open champion Spieth loses ground in scrappy finish|
|Alexis Sanchez hints visa issue sorted as United States trip beckons|
|Kovac an admirer of Pavard, expects James to stay|
|Dzeko happy at Roma and eyeing silverware|
|Eels win basement battle with Bulldogs|
|Kluivert to follow Totti´s example after taking ´big step´ with Roma|
|Kisner hopes to return Claret Jug favour to Spieth|
|FIBA bans 13 players & two coaches over Philippines-Australia brawl|
|Spieth and Rahm in the mix as Kisner sets the target|
|Monchi insists Roma remain ambitious as Liverpool close in on Alisson|
|Cavendish thanks ´race that shaped career & heart´ after cruel Tour exit|
|No Trent Bridge Ashes Test as England confirm schedule|
|Ajax tell Barcelona not even ´insane´ money will buy De Ligt, De Jong|
|Hamilton agrees two-year Mercedes extension|
|Uran withdraws from Tour after failing to shake off injuries|
|Spieth tees off Open defence|