An unbeaten half-century from Mohammad Hafeez ensured the first Test between Pakistan and Sri Lanka ended in a draw at Abu Dhabi.
Set an unlikely victory target of 302 in just over two sessions - following Sri Lanka captain Angelo Mathews' declaration - Pakistan opted instead to bed in for a draw and were 158 for two when the two teams shook hands.
Mathews set up the prospect of a chase when he declared at 480 for five late in the morning session after hitting a career-best unbeaten 157.
Pakistan surged to lunch at 20 without loss from five overs to provide belief they might take up the challenge, but their desire seemed to fade once Khurram Manzoor edged behind off Suranga Lakmal shortly after the break.
Hafeez and Ahmed Shehzad instead dug in and both notched half-centuries with a 101-run stand, steering Pakistan through comfortably to tea and into the evening session.
Shezad fell for 55, trapped leg before by Rangana Herath, but Hafeez continued to hold the fort and had reached an unbeaten 80 when stumps were drawn.
After batting through day four to reach his second Test century, Mathews combined with half-centurion Prasanna Jayawardene to add a further 60 runs in 20.3 overs this morning.
That extended their unbroken stand to 156 and the lead beyond 300 at which point Mathews presented his bowlers with 57 overs in which to take 10 wickets.
The second Test of the three-match series will begin in Dubai on January 8.