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.
|Deschamps joins elite club, Mbappe second to Pele - the best stats from the World Cup final|
|Belgium´s Courtois wins World Cup Golden Glove|
|Collarbone fracture confirmed for ´devastated´ Porte|
|World Cup final player ratings: Griezmann, Mbappe inspire France as Croatia fall short|
|World Cup winner Giroud ends tournament without shot on target|
|Modric wins World Cup Golden Ball|
|Mbappe wins World Cup Young Player award|
|Deschamps redeemed as France win World Cup final for the ages|
|France 4 Croatia 2: Twitter Report|
|Tomlin optimistic over Bell contract|
|Kane wins World Cup Golden Boot|
|Ajax keen on Blind deal - Van der Sar|
|France 4 Croatia 2: Pogba and Mbappe seal thrilling World Cup triumph|
|Anderson would have played another 21 hours to reach Wimbledon final|
|Djokovic delighted to crown ´comeback´ with Wimbledon glory|
|World Cup final interrupted by pitch invaders - Pussy Riot claim responsibility|
|Djokovic´s grass-court U-turn pays ultimate dividends with Wimbledon title|
|Mandzukic makes World Cup history with early own goal|
|Dominant Djokovic beats Anderson to regain Wimbledon title|
|Everybody said I´m done - Degenkolb revels in first Tour victory|
|´Big party´ for Marquez after Sachsenring success|
|Hazard enjoys Belgium´s welcome home|
|Ex-AC Milan president Berlusconi conflicted over Ronaldo to Juventus|
|Spain did not contact Martinez over head coach vacancy|
|Maybe the VAR was watching The Simpsons! - RSL coach Petke slams MLS officials|
|Cubs´ Darvish hopes to return by next weekend|
|France and Croatia name unchanged sides for World Cup final|
|Marquez maintains Sachsenring dominance|
|Courtois claims World Cup has boosted his value|
|Buffon beaten on difficult PSG debut|
|Vince called up for Headingley decider|
|Farah inspires Tigers win over Dragons, Warriors and Roosters triumph|
|Crash forces Porte out of Tour for second year running|
|Ronaldo considered Napoli move, says De Laurentiis|
|Mafi arrested for allegedly assaulting Rebels team-mate|
|Everybody is welcome - Croatia pitch for neutral support in World Cup final|
|West Ham seal club-record swoop for Felipe Anderson|
|Rooney applauds England for capturing fans´ imagination|
|Krajicek urges Anderson to go for broke in Wimbledon final|
|Wimbledon 2018: Djokovic v Anderson in Opta numbers|
|Kohli defends Dhoni after Lord´s boos|
|Wimbledon finalist Djokovic can win the next six majors, claims Krajicek|
|We´re ´blessed´ to watch Mbappe, says Kaka|
|Bogaerts hits walk-off grand slam to deliver Red Sox win over Blue Jays|
|Cardinals dismiss Matheny, name Shildt interim manager|
|Pacquiao knocks out Matthysse to win welterweight title|
|Didulica expects ´cagey´, tight World Cup final|
|MLS Review: Rooney impresses on debut, Galaxy leave it late|
|Truex dominates to win Quaker State 400 again|
|Kim in control at John Deere Classic|
|Braves place closer Vizcaino back on DL, manager concerned about injury|
|Long on Eagles having Wentz, Foles: It´s really a dream|
|Effenberg: I´d prefer Mandzukic over Neymar|
|Courtois open to Chelsea stay amid Madrid links|
|Rays´ Ramos won´t play All-Star Game due to hamstring injury|
|Gary Sanchez injury update: Yankees catcher on track to return after All-Star break|
|Windies crush Bangladesh again to seal series win|
|Klopp backs Lovren´s lofty ´best in the world´ claim|
|Root welcomes ´ruthless´ England display|
|Martinez on target in impressive Inter debut|
|Kerber puts Wimbledon triumph down to 2017 hardships|
|Wimbledon diary: Kerber´s ghost bus and Space Jam on Centre Court|
|Hot finish sees Dantorp lead as Fitzpatrick and Fowler loom|
|Djokovic always believed in rediscovering best form|
|Wimbledon runner-up Serena might steer clear of US Open doubles|
|Root blossoms as England reign at Lord´s to level ODI series|
|Hazard clouds Chelsea future amid Real Madrid rumours|
|Sharks sneak play-off spot, Lions secure second|
|Everton win friendly 22-0 (that´s twenty-two, nil) in Austria|
|Karius jeered as Liverpool´s stars fail to shine in Bury stalemate|