Abdullah Shafique scored an unbeaten 160 as Pakistan defeated Sri Lanka by four wickets in the first Test on Wednesday in Galle, chasing down a record mark of 342.
To take a 1-0 lead in the two-match series, the visitors won the game in the final session on the fifth day of competition.
The most successful fourth-innings chase at Galle previously occurred in 2019 when Sri Lanka defeated New Zealand by a score of 268.
For the hosts, left-arm spinner Prabath Jayasuriya got four wickets and is on the verge of a record-breaking four consecutive five-wicket hauls in his first two Tests.
In a series-leveling Test victory against Australia last week at the same location, he grabbed 12 wickets on his debut, six in each innings.
As soon as Sri Lanka used up their final two umpire reviews, which both featured Jayasuriya, Pakistan started the day on 222-3.
Mohammad Rizwan began the day with a boundary off Ramesh Mendis and maintained his optimism by taking singles and twos before being bowled out for 40 by Jayasuriya.
Rizwan, a wicketkeeper-batsman who entered the two-match series following a successful stay with English county Sussex, was not saved by a review.
Shafique has so far maintained his composure and performed the anchor job flawlessly, scoring his second Test century on day four to put the pursuit in front.