Sri Lanka, who made 338 in the first innings, won the opening test in Galle by 278 runs inside three days.
Sri Lanka's formidable battery of tireless spinners bowled them to within five wickets of a 2-0 series sweep over South Africa as the tourists continued to struggle against the turning ball in the second and final test on Sunday.
Rangana Herath was pick of the Sri Lankan bowlers, claiming 6-98 in yet another spin-dominated performance by the hosts.
Skipper Faf du Plessis was once again his team's top scorer with a counter-attacking innings of 48 off 51 balls inclusive of eight fours and a six.
Maharaj's nine-wicket spree was South Africa's best in an innings since the country's post-apartheid return to Test cricket in 1991. Sri Lanka also lost Kusal Mendis when he was run out for 18.
Man United defender Dalot ruled out until September - Mourinho
But it is what it is and we have to try and make the best out of it with the players we have here". Mourinho, speaking in Los Angeles , said: "I did with Paul what I did with all my players".
England vs India 3rd ODI
The question of England's mental approach was at the forefront of Root's thinking as he turned his focus to the Test series. Victory in this series represents a significant step for this England side, given the calibre of India's one-day outfit.
Dan Gilbert Gives Heavy Praise to Collin Sexton for Summer League Play
Last summer, Hart's teammate Lonzo Ball was named the MVP after leading the Lakers to the summer league championship. The Blazers got their Summer League revenge against the Lakers, and they did so in record-setting fashion.
Maharaj's 9-129 is the second best by a South African in tests, behind only Hugh Tayfield's 9-113 against England in 1957, but his success brought little cheer to a side battling their own spin vulnerabilities.
Dimuth Karunaratne was batting on 59 at stumps, his fourth successive 50-plus knock in the series, with Angelo Mathews on 12 at the other end.
South Africa's batsmen showed greater application on Monday morning than throughout the series, with De Bruyn and Temba Bavuma in particular, playing the spinners particularly well.
Dananjaya was left stranded on 43 not out, his career best score.