Angelo Mathews and Dinesh Chandimal added 50 to their stand before Imran Khan trapped Chandimal lbw, and cut through Sri Lanka's tail to get his maiden five-for AFP
At the other end, Mathews reached his fifth Test century and set Pakistan a target of 377 AFP
Loading ...
Sri Lanka began in ideal fashion, with Suranga Lakmal going through the defence of Ahmed Shehzad in the second over AFP
Dhammika Prasad had Azhar Ali caught down the leg side for 5, as Pakistan slumped to 13 for 2 AFP
Shan Masood struggled to find fluency but managed to help Pakistan reach 99 for 2 by tea AFP
Younis Khan, though, allied with Masood and added muscle to the rescue ops with his 30th Test century. He became the first Test batsman in history to score five hundreds in the fourth innings AFP
Masood, who scored his maiden hundred, stitched together an unbroken 217-run partnership with Younis. Pakistan went to stumps on 230 for 2, needing 147 runs more to win on the final day AFP