Pakistan made history as they completed an impressive victory over Sri Lanka in Galle, hunting down a venue record total of 342 to notch a four-wicket win.
The tourists went into the final day needing a further 120 runs with seven wickets remaining to claim one of their highest-ever pursuits in Test cricket.
Steered by Abdullah Shafique's unbeaten 160, the tourists managed to knock off the remaining tally with relative ease, posting an eventual score of 344-6.
The chase did not quite match Pakistan's best of 377 - also against Sri Lanka in Pallakele in 2015 - but exceeded the record pursuit in Galle, set by the hosts against New Zealand in 2019 when they notched 268.
The result also marks a major shift for both in the World Test Championship rankings, moving Pakistan up to third and giving them a shot of making next year's final.
They now only trail South Africa and Australia, while defeat drops Sri Lanka from third to sixth, moving India up to fourth and the West Indies into fifth.
The hosts will have a chance to strike back on Sunday when the second Test starts in Galle once more.