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.
|Panama boss Gomez steps down after World Cup|
|No Chelsea agreement for Golovin, claims CSKA president|
|Root looks right at home as England ease to series victory|
|Brighton sign Mali midfielder Bissouma from Lille|
|Kaka backs Brazil boss Tite after ´excellent´ World Cup|
|Alaphilippe the toast in France as Van Avermaet increases Tour lead|
|Shkupi 0 Rangers 0: Gerrard´s men advance despite dour draw|
|Khazri ends Sunderland nightmare as Saint Etienne swoop|
|The Open 2018 diary: Rose lets Rio go as Rahm goes ´Lefty´|
|Lampard raids Chelsea and Liverpool in Derby double swoop|
|Balotelli returns to Nice training after Marseille talks stall|
|Owens wants to play in the CFL, says agent|
|I don´t like thinking too much - Johnson|
|Toulon president fined as French club receive suspended points penalty|
|Top of the flops - Mickelson plays exquisite trick shot over man´s head!|
|Kerber targeted Wimbledon after 2017 disappointment|
|England´s World Cup heroes given dedicated parking spots|
|Insigne prefers Messi to new Juve star Ronaldo|
|Koepka enjoys playing with a chip on the shoulder|
|Ryan Hall to leave Leeds Rhinos amid reports of NRL move|
|Hamann slams Lahm for Low criticism|
|Hart named in Manchester City squad for United States tour|
|F1 Raceweek: Leader Vettel heads home|
|Unfair to pin Brazil blame on Neymar, says Kaka|
|Thomas and friends ´want to beat each other´s brains in´|
|Woods´ love for links fathered at Carnoustie|
|Confident Rose targets tournament wins and number one spot|
|Hallgrimsson leaves Iceland post|
|Australian Open to consult players over fifth-set tie-breaks|
|Daley´s coming home - Ajax rewrite Three Lions anthem|
|Woods: Open my best chance at winning another major|
|Blind completes Ajax return from Manchester United|
|I belong at the top, says Anderson|
|Leaving Madrid was my biggest regret, Panucci warns Ronaldo|
|Folau in no rush to settle future amid Reds rumours|
|Degenkolb: I need two or three secretaries to manage congratulations!|
|Harrington v Garcia: When winning makes life tougher|
|Mafi and Timani fined by Rebels|
|Watson: Johnson and Woods can prosper at Carnoustie|
|Alderweireld hints at Tottenham departure|
|Maradona takes over as Dynamo Brest chairman|
|The Open 2018: Wounded animal Spieth is a danger to Carnoustie rivals|
|Wests´ Reynolds to miss the rest of 2018|
|Pussy Riot members jailed for World Cup final protest|
|Ronaldo capture boosts Serie A - Mourinho|
|Goals at three World Cups and 50 for the Socceroos – Cahill´s international career in numbers|
|Giroud: It´s coming home|
|Harper wins Home Run Derby in Nationals Park|
|Brighton sign Button from Fulham|
|Bolt set to trial with A-League club Central Coast Mariners|
|Thomas asks Seahawks for extension or trade|
|Walker doubts he´ll join Knicks, wants ´long´ stay at Hornets|
|Socceroos hero Cahill retires from internationals|
|Record income revenue for Barcelona|
|Kudla untroubled as Young bows out in Newport|
|Celtics still hoping to re-sign Smart|
|Villarreal sign highly rated Velez midfielder Caseres|
|Juventus signing Ronaldo should give Milan optimism – Kaka|
|Berrettini masters Mayer in Bastad|
|Manchester United and Ajax agree Daley Blind transfer|
|Familiarity with demands of Real Madrid an advantage – Lopetegui|
|Parmentier rallies to avoid Bucharest exit, Arruabarrena bows out in Gstaad|
|Steelers fail to sign Bell to long-term deal|
|Over 10 per cent of Croatia´s population welcomes World Cup heroes home|
|Thierry Henry quits pundit role to focus on coaching|
|France´s World Cup winners given heroes´ welcome in Paris|
|At the end we will see who is best - Ronaldo sidesteps Messi rivalry|
|Qatar? China? Ronaldo only has eyes for glory at Juventus|
|Proud Kane praises team-mates after Golden Boot win|
|The Open 2018 diary: Is that Tiger Woods? Harrington feels the Burn...|