Sri Lanka has won the second cricket Test by 68 runs to condemn Pakistan to a first home series defeat since moving their home games to the United Arab Emirates.
Chasing 317 for victory in Dubai after bowling Sri Lanka out for 96 in their second innings in the day-night match, Pakistan were well placed at 222-5.
But they collapsed to 248 all out as off-spinner Dilruwan Perera took 5-98.
Asad Shafiq made 112, adding 173 for the sixth wicket with skipper Sarfraz Ahmed, who scored 68.
Sri Lanka, who had not won an away series against Pakistan since 2000, won the first Test in Abu Dhabi by 21 runs.
Their heavy home series defeat by India prompted the resignation of the selection panel.
The sides play a five-match one-day series starting on Friday, before contesting three Twenty20s, the last of which will take place in Lahore, subject to security.
Pakistan have not played a Test series on home soil since gunmen attacked the Sri Lanka team bus in Lahore in 2009, killing six policemen and two civilians and injuring several Sri Lanka players and coaches.
The majority of their 'home' Tests since have been played in the UAE.