A career-best innings from Sarfraz Ahmed gave Pakistan hope of salvaging a draw in the second Test against Sri Lanka at the Dubai International Cricket Stadium.
The wicketkeeper made an unbeaten 70 as his side finished Day 4 on 330-7, a lead of 107 with three second innings wickets intact.
Pakistan had a 223-run deficit on first innings but 26-year-old Sarfraz followed on from good work by Younis Khan and Misbah-ul-Haq to give Pakistan hope of keeping the three-Test series level at 0-0.
|Manzoor||c P Jayawardene||b Pradeep||6||30||22|
|Shehzad||c P Jayawardene||b Herath||9||10||7|
|Hafeez||c P Jayawardene||b Pradeep||1||3||4|
|Y Khan||c P Jayawardene||b Lakmal||77||256||173|
|Shafiq||c Karunaratne||b Eranga||23||99||75|
|Sarfraz Ahmed||not out||70||185||123|
|Extras||0nb 0w 1b 7lb||8|
Starting Day 4 on 132-3, and still 91 runs behind, the de-facto hosts suffered a blow inside the opening hour when Younis attempted to cut Suranga Lakmal only to give Prasanna Jayawardene a catch behind the stumps.
Younis had only added 15 to his overnight 62 but Pakistan reached lunch without further loss and had progressed to 189-4.
Sri Lanka took the new ball in the afternoon and it produced dividends immediately with Asad Shafiq edging Shaminda Eranga to Dimuth Karunaratne at second slip after making 23.
The tourists then claimed the prized wicket of Misbah shortly before tea with the Pakistan captain falling three runs short of a sixth Test century.
Slow left-armer Rangana Herath produced a beauty that turned past Misbah's outside edge and pegged back off-stump to end his 248-ball vigil.
76.2 - Since January 2013 Misbah-ul-Haq has hit 457 runs in eight Test second innings (5 x 50), at an average of 76.2. Recoveries. #PakvSL— OptaJim (@OptaJim) January 11, 2014
Pakistan were 265-6 at the adjournment with a slender lead of 42 but Sarfraz, in just his fifth Test, shared a 67-run partnership with Bilawal Bhatti who also made a career-best 32 before being yorked by Eranga.
Sarfraz Ahmed brought up his maiden Test half-century off 73 balls and saw his side through to the close alongside Saeed Ajmal with the final half hour lost to rain.