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.
|Keita will do ´great things´ for Liverpool – Mane|
|Mourinho needs time to fix Manchester United - Veron|
|Southgate sees progress as England reward loyal support|
|Miller hungry to ´knock out a Brit´ after Dinu demolition|
|Yasir, Hasan put Pakistan in control with five-wicket hauls|
|England´s resilience delights Kane as Three Lions secure Nations League Finals spot|
|Kane proves Nations League importance to England in Wembley decider|
|Muller, Hummels still important for Germany, says Low|
|Tevez in line for start in Copa Libertadores final second leg|
|England 2 Croatia 1: Kane able to secure Nations League Finals spot|
|It doesn´t sound real - Molinari stunned by 2018 exploits|
|Wales legend Thomas victim of alleged homophobic attack|
|Marquez crashes again as Dovizioso wins rain-interrupted Valencia GP|
|Warriors owner denies taking sides following Green-Durant spat|
|Alisson can become a global great, says Dida|
|The Sunday Seven - 7 Key Opta facts for NFL Week 11|
|Teen driver ´fine´ after sustaining spinal fracture in F3 crash|
|Willett wins first title since Masters triumph, Molinari tops Race to Dubai standings|
|Southgate overcomes ´stigma´ of being sacked to thrive with England|
|Anthony to Lakers ´not a question for myself´, says LeBron James|
|Warriors´ Stephen Curry staying ´cautious´ with injury recovery|
|Gunter hopes Bale can help family jet in to witness Wales record|
|Root pleased to practice what he preached|
|Tianjin Quanjian threaten action after Modeste returns to Cologne|
|I had to stop Kemba getting 70! – Jimmy Butler reflects on dramatic game-winner|
|Molinari wins Race to Dubai|
|Rooney: Some ex-players can´t come to terms with England doing well|
|In a spin: England´s win against Sri Lanka sets new record|
|Ogier wins sixth straight WRC title|
|Rogic, Kruse to miss Socceroos´ Lebanon friendly|
|Joerger has Kings´ ´full support´, says GM Divac|
|England seal series win over Sri Lanka|
|Butler´s heroics spoil Walker´s 60-point game as 76ers beat Hornets|
|He´s an honest guy – Djokovic defends Zverev after Finals controversy|
|Bonucci boos a ´mistake´ by fans, says Mancinima|
|Ronaldo still part of Portugal squad – Santos|
|Santos satisfied as Portugal reach Nations League Finals|
|Howell holds onto RSM Classic lead|
|McLeish optimistic as Scotland zero in on Nations League promotion|
|Luis Enrique rejects criticism of Spain star De Gea|
|Schmidt dismisses Hansen´s Ireland World Cup favourites claim as ´banter´|
|There are always imbeciles – Bonucci hits back at fans after frosty San Siro reception|
|Portugal draw ´a step forward´ despite poor finishing – Mancini|
|Ireland were just too good - Read|
|Thomas at the double as France end losing streak|
|Albania 0 Scotland 4: Forrest double sets up promotion showdown|
|Italy 0 Portugal 0: European champions outplayed but secure Finals spot|
|Sensational Djokovic marches into final|
|Stander lauds Ireland´s ´unreal´ defence as All Blacks are thwarted|
|Dazzling Ireland claim historic All Blacks scalp in Dublin|
|Federer unimpressed with Zverev boos|
|Let´s get it on! Cheika relishing England clash|
|Croatia coach Dalic to speak with Lovren over Ramos remarks|
|Xhaka puts improved form down to ´freak´ Emery|
|De Gea not lacking confidence, says Spain´s Saul|
|Jordan goalkeeper scores from own penalty area in friendly against India|
|Pollard leads Springboks to Murrayfield victory|
|Fired-up Japan taught England a great lesson - Jones|
|Sarries leave it late to down Sale, Bath and Saints win|
|O´Shea fumes at disallowed Italy try|
|Southgate welcomes England selection quandary|
|Reaching Rooney´s England goals record ´definitely possible´ – Kane|
|Debut try for Cokanasiga as England rally to avoid Japan upset|
|Wembley will galvanise ´tired´ Croatia, insists Dalic|
|Zverev apologises for tie-break controversy amid O2 Arena heckles|
|Marquez happy with fifth after damaging shoulder in Valencia|
|Wales crush Tonga in Cardiff|
|Germany should keep faith in old guard - Bierhoff|
|Injured Lukaku to miss Belgium´s Nations League decider|
|Zverev knocks out Federer to reach maiden ATP Finals showpiece|