Home side falls short of the tourists large first innings in Sharjah.
Pakistan were bowled out for 341 in their first innings on the fourth day of the third and final Test against Sri Lanka in Sharjah on Sunday.
That left them conceding a first innings lead of 87 to Sri Lanka, who had declared on 428-9.
Skipper Misbah-ul Haq (63) notched up his 24th half-century before he holed out to off-spinner Rangana Herath, who finished with figures of 5-125.
Paceman Shaminda Eranga took 4-60, the best figures of his Test career.
Resuming on 291-6, Pakistan lost Abdul Rehman (two) and Mohammad Talha (two) before reaching 300.
Sri Lanka lead the three-match series 1-0 after winning the second Test in Dubai by nine wickets.
The first Test in Abu Dhabi ended in a draw.
Scoreboard after Pakistan’s first innings on the fourth day of the third and final Test against Sri Lanka played at Sharjah Stadium on Sunday:
Sri Lanka 1st innings 428-9 dec (D. Perera 95, A. Mathews 91, K. Sangakkara 52; Junaid Khan 3-81, Mohammad Talha 3-99)
Pakistan 1st innings (overnight 291-6)
Khurram Manzoor c Prasanna b Eranga 52
Ahmed Shehzad b Herath 147
Azhar Ali c Mathews b Perera 8
Younis Khan c Prasanna b Herath 17
Misbah-ul Haq c Chandimal b Herath 63
Asad Shafiq lbw b Eranga 18
Sarfraz Ahmed c Prasanna b Herath 5
Abdul Rehman c Prasanna b Eranga 2
Mohammad Talha lbw b Eranga 2
Saeed Ajmal not out 0
Junaid Khan c Chandimal b Herath 16
Extras: (b3, lb6, nb1, w1) 11
Total: (all out; 109.1 overs) 341
Fall of wickets: 1-114 (Manzoor), 2-149 (Azhar), 3-189 (Younis), 4-245 (Shehzad), 5-274 (Shafiq), 6-291 (Sarfraz), 7-294 (Rehman), 8-300 (Talha), 9-325 (Misbah)
Bowling: Herath 38.1-8-125-5 (1w), Lakmal 23-4-61-0, Perera 17-1-71-1, Eranga 24-5-60-4 (1nb), Mathews 7-3-15-0
Toss: Sri Lanka
Umpires: Richard Kettleborough (ENG) and Sundaram Ravi (IND)
Tv umpire: Bruce Oxenford (AUS)
Match referee: Javagal Srinath (IND)