Sri Lanka 320 (Tharanga 92) & 177-2 v
Pakistan 330 (Sarfraz Ahmed 103, Herath 9-127)
Second Test, Colombo, day three
Rangana Herath returned figures of nine for 127 and Mahela Jayawardene began his final Test innings as Sri Lanka closed day three of the second and final Test against Pakistan 165 runs ahead.
Herath's figures, the 18th best in the history of Test cricket, bowled Pakistan out for 330 after Sarfraz Ahmed registered his maiden Test century, scoring 103.
Sri Lanka were building a handy lead by stumps with Kumar Sangakkara unbeaten on 54 and Jayawardene, who retires from Tests after this game, not out on 49.
Sri Lanka lead the series 1-0 after a seven-wicket win in Galle.
Pakistan started the day on 244 for six replying to Sri Lanka's 320 with Sarfraz progressing strongly to three figures for the first time.
He got there thanks to support from Abdur Rehman (16) and Wahab Riaz (17) who ensured that Pakistan would gain a small first innings lead.
After Sarfraz reached his milestone, scoring 103 in 127 balls, he fell to Herath, like Rehman and Riaz, and the left-arm spinner also dismissed Saeed Ajmal, bowling him for four to claim career-best figures.
He is the second Sri Lankan, after Muttiah Muralitharan took nine for 51 against Zimbabwe in 2002 and nine for 65 against England in 1998, to achieve nine wickets in an innings.
Junaid Khan was unbeaten on 13 in 12 balls but played no part after Pakistan's innings was completed being taken to hospital following a blow to the head off the bowling of Dhammika Prasad.
Sri Lanka did not need long to get back into the lead as they began their second innings as Upul Tharanga (45) and Kaushal Silva (17) put on 54 for the first wicket.
Tharanga hit five fours before going for a pull shot and edging Rehman onto his stumps before Silva edged Rehman to Younus Khan at slip.
That brought Jayawardene to the crease and he joined Sangakkara to progress the score from 79 for two to 177 for two, the pair adding 98 together.
Sangakkara struck 54 in 121 balls and Jayawardene 49 in 123, ensuring their final partnership in Test cricket will continue on day four of the match as Sri Lanka look to put the game beyond Pakistan.
© Cricket World 2014