The 100th wicket at Galle was also Herath's 431st Test wicket.
After he bows out of international cricket, Herath said he will go back to his day job at Sampath Bank.
Ahead of Herath’s final Test appearance in a career that began in 1999, here’s a recap of his best performances.
The ODI team is being led by Mithali Raj with Harmanpreet Kaur as vice-captain, while the T20I side is being led by Kaur and vice-marshalled by dashing left-hander Smriti Mandhana
Maharaj contended that the wicket at SSC is a bit different than at Galle as it skids on and it provided him with more chance of getting LBWs and top-edges
Cultural Affairs Minister Wijeyadasa Rajapakshe told parliament the fort risked losing UNESCO World Heritage status because of unauthorised construction, including the 500-seat pavilion.
Fast bowler Kagiso Rabada claimed four wickets to reduce Sri Lanka to 176-8 but Karunaratne gave the total respect with his 222-ball knock after the hosts elected to bat first.
Karunaratne's effort means that he is the 34th player to have recorded a century while carrying the bat through a completed innings. His 158* is the 15th highest score for an opener in a carrying-bat-through effort.
"In our bowling attack that we have, we have the ability to get 20 wickets on whatever the surfaces. I think this series will be won where the batters need to stand up for both teams," Faf du Plessis said.
"Following this South Africa series, there is another three months until the England series. For now, this is what I've planned for. There comes a time for every cricketer, when they have to stop playing. I think that time has come for me," Herath said.