The second Test in Colombo is evenly poised after Pakistan reached 244-6 at stumps on Day 2, in reply to Sri Lanka's first innings 320.
Spinner Rangana Herath took five wickets but the tourists will be looking to establish a first innings lead with Sarfraz Ahmed unbeaten on 66.
Sri Lanka resumed on 261-8 and boosted their total thanks to a 36-run final wicket partnership between Herath (17) and Chanaka Welegedara (27 not out).
Left-arm paceman Junaid Khan earlier trapped Dhammika Prasad for 13 and finished with figures of 5-87.
Pakistan made a brisk start to their reply, bringing up the 50 in just 9.5 overs, although they lost Khurram Manzoor (23) who was caught behind off Herath.
They were in a promising position at 110-1 but lost four wickets for 30 runs in under 11 overs either side of tea.
|Pakistan 1st Innings: 244 for 6 (70 overs)|
|Manzoor||c Dickwella||b Herath||23||36||35|
|Shehzad||c Dickwella||b D Perera||58||152||85|
|Azhar Ali||c Mathews||b Herath||32||101||77|
|Y Khan||c Dickwella||b Herath||13||31||26|
|Misbah-ul-Haq||c Dickwella||b Herath||5||31||19|
|Sarfraz Ahmed||not out||66||118||81|
|Extras||1nb 0w 0b 3lb||4|
Herath had Azhar Ali (32) caught by Angelo Mathews at short mid-wicket before fellow spinner Dilruwan Perera removed opener Ahmed Shehzad (58). He was caught by keeper Niroshan Dickwella off the inside edge.
Herath then accounted for Pakistan's experienced pair of Younus Khan (13) and Misbah-ul-Haq (5) before ending a 93-run partnership for the sixth wicket by bowling Asad Shafiq (42).
Sri Lanka won the opening match of the two-game series by seven wickets.