Kumar Sangakkara compiled his eighth double hundred in Tests, and with able support from Prasanna Jayawardene salvaged a draw for Sri Lanka on the final day of the opening Test against Pakistan in Abu Dhabi on Saturday.
Sri Lanka survived some nervous moments at the closing stages of their second innings before being all out for 483 and setting Pakistan a victory target of 170 from 21 overs.
Pakistan decided against the chase and reached 21 for one, with the loss of double centurion in the first innings, Taufeeq Umar, when stumps were drawn.
Sangakkara (211) and Jayawardene (120), both unbeaten overnight, batted resolutely to add 201 for the sixth-wicket as Pakistan were left to rue Friday's dropped chances.
Stylish left-hander Sangakkara, who was dropped on 56 by Younis Khan off Mohammad Hafeez, got past the 200-run mark with a glance to the fine-leg boundary.
The former Sri Lanka captain, who also survived a run-out chance on 190, hit 18 boundaries during his 431-ball knock, before he fell lbw in the last over before tea to give part-time legspinner Azhar Ali his first test wicket.
Pakistan's last hopes of forcing a victory after the mammoth partnership between Sangakkara and Jayawardene ended when an easy catch from Rangana Herath (23 not out) off Junaid Khan was dropped by Umar Gul at mid-off.
Jayawardene, who also received a life on Friday when substitute fielder Wahab Riaz put down an easy catch off Gul, completed his fourth Test hundred with a lofted drive over spinner Saeed Ajmal's head.
The right-handed wicketkeeper-batsman fell to the third new ball of the innings when he edged paceman Aizaz Cheema behind the stumps.
Gul wiped off the Sri Lankan tailenders, finishing with four for 64.
The Pakistan pacemen managed to extract a bit of reverse swing with the old ball in dry conditions at the Sheikh Zayed Stadium and troubled the batsmen on a number of occasions but failed to get the crucial wickets.
Pakistan are playing "home" Tests in the Gulf region because of security fears in their own country. The match is the first in a three-Test series.
Sri Lanka (1st innings): 197
Pakistan (1st innings): 511-6 declared
Sri Lanka (2nd innings) (overnight 298-5)
T. Paranavitana lbw b Gul 0
L. Thirimanne run out 68
K. Sangakkara lbw b Azhar Ali 211
M. Jayawardene b Saeed Ajmal 4
T. Dilshan b Junaid Khan 9
A. Mathews lbw b Gul 22
P. Jayawardene c A Akmal b Cheema 120
R. Herath not out 23
C. Welegedara c A Akmal b Gul 8
S. Lakmal b Gul 0
N. Pradeep run out 0
Extras (b-4, lb-11, nb-3) 18
Total (all out; 168 overs) 483
Fall of wickets: 1-0, 2-153, 3-160, 4-191, 5-233, 6-434, 7-466, 8-477, 9-481
Bowling: Umar Gul 25-3-64-4, Aizaz Cheema 32-1-108-1, Saeed Ajmal 55-8-167-1, Junaid Khan 31-6-83-1, Mohammad Hafeez 22-4-42-0, A. Ali 3-1-4-1
Pakistan (2nd innings):
M. Hafeez not out 12
T. Umar lbw b Welegedara 2
A. Ali not out 4
Extras: (nb-3) 3
Total (one wicket; 10 overs) 21
Fall of wicket: 1-7
Bowling: Chanaka Welegedara 5-2-9-1, Suranga Lakmal 2-1-1-0, Rangana Herath 2-0-8-0, Nuwan Pradeep 1-0-3-0.