Dubai, Oct 29: Off-spinner Saeed Ajmal grabbed 5-68 and opener Mohammad Hafeez hit an undefeated 59 Saturday as Pakistan beat Sri Lanka by nine wickets with a day to spare in the second test.
Pakistan leads the three-match series 1-0.
Sri Lanka, trailing by 164 after the first innings, was bowled out for 257 after starting the fourth day on 88-1 at Dubai International Stadium.
Opener Tharanga Paranavitana topscored with 72 while Angelo Mathews contributed an unbeaten 52.
Man of the match Ajmal was well supported by left-arm seamer Junaid Khan (2-38) and left-arm spinner Abdur Rehman (2-65).
Pakistan, set 94 to win, cruised to victory in fading light on the back of Hafeez's half century with five fours and two sixes off 64 balls.
Azhar Ali, who scored a century in the first innings, hit 29 not out in an unbroken second wicket stand of 77 and scored the winning runs.
Sri Lanka captain Tillakaratne Dilshan blamed his batsmen for the defeat.
"They played good cricket but we have to consider our batting. We have to put some runs on the board for our bowlers to bowl at," he said.
Pakistan's bowlers stifled Sri Lanka in the morning session, tightening its grip with the wickets of the experienced trio of Kumar Sangakkara, Mahela Jayawardene and Dilshan before lunch.
Rehman claimed the key breakthrough by removing Sangakkara for 30 in the fourth over of the day and ending the second wicket stand of 73. The former captain was given out lbw by umpire Tony Hill prodding forward to a ball that turned appreciably.
Jayawardene, closing in on 10,000 test runs, endured a testing time on a deteriorating pitch and was eventually bowled around his back as he swept at Ajmal. Jaywardene compiled only 5 from 34 balls in just under an hour.
Three runs later, it was 116-4 as captain Dilshan (3) was trapped in front by Junaid Khan.
Junad also appeared unlucky not to have claimed Mathews lbw after the right-hander played no stroke to a big inswinger.
Pakistan kept up its momentum in the second session, prying out Paranavitana and removing Kaushal Silva cheaply.
Paranavitana, who batted for 5½ hours, prodded forward to Ajmal and edged low to Younis Khan at first slip at 141-5.
Mathews and Kaushal Silva erased the deficit but Silva fell soon afterwards to Juniad with the second new ball after he miscued a pull and Ajmal took an easy catch at mid-on at 166-6.
But Mathews and Prasad provided some spirited resistance in a seventh wicket stand of 56. Prasad dominated, cracking four fours in 33 off 48 deliveries. But once he was bowled by a straighter ball from Rehman, the end came swiftly.
Ajmal claimed Rangana Herath (15), who hit to cover off the leading edge, and added Chanaka Welegedara (4) and Suranga Lakmal (8) to claim his fourth five-wicket haul in tests.
Welegedara was lbw while Lakmal played inside the line of a doosra and was bowled.
Pakistan lost Taufeeq Umar in its pursuit of 94, but Hafeez and Azhar provided the impetus to ensure victory was achieved with a day to spare.
Pakistan captain Misbah-ul-Haq praised his bowlers for laying the foundation for eventual victory over Sri Lanka
"The initiative given by the fast bowlers in the first two hours, I think that was the key for us," Misbah said. "That gave us the sniff to go on and win this match."
Pakistan has won four, drawn four and lost just one since Misbah took over following the spot-fixing crisis in Pakistan's tour of England in 2010.
In contrast, Sri Lanka has now gone 13 tests without a win since the retirement of off-spinner great Muttiah Muralitharan in 2010.
The third and final test begins in Sharjah on Thursday.