GALLE: Pakistan's Shaheen Shah Afridi led an inspired attack to bowl out Sri Lanka for 222 but the hosts hit back with two wickets before stumps on the opening day of the first Test on Saturday.
The tourists reached 24 for two at the close of play in Galle after losing their openers Imam-ul-Haq and Abdullah Shafique.
Azhar Ali, on three, and skipper Babar Azam, on one, were batting at close of play with Pakistan still trailing by 198 runs.
Fast bowler Kasun Rajitha trapped Imam leg before wicket for two and Prabath Jayasuriya took down Shafique for 13 with his left-arm spin on a day dominated by the bowlers.
Left-arm fast bowler Shaheen stood out with figures of 4-58 but Dinesh Chandimal's attacking 76 and a late cameo of 36 by Maheesh Theekshana gave the hosts a fighting total on a pitch expected to aid spinners.
The hosts were tottering at 133-8 but added 89 runs for the final two wickets including a 44-run stand by Theekshana and Chandimal, who hit 10 fours and one six.
Shaheen wrapped up the innings with the wicket of Theekshana in the final session of play.
The pace spearhead struck in the third over of the day to send back skipper Dimuth Karunaratne for one, and leg-spinner Yasir Shah soon combined with the quick bowlers to have Sri Lanka in trouble after they elected to bat.
Oshada Fernando and Kusal Mendis attempted to rebuild the innings in a 49-run partnership but Yasir, who is making a comeback to the team after a thumb injury that kept him out since August last year, broke through.
Yasir got Kusal caught behind for 21 and Oshada soon followed his partner back to the pavilion in the next over when pace bowler Hasan Ali cut short the opener's stay on 35.
Angelo Mathews then fell for a 15-ball duck as Yasir got the former captain caught at mid-on.
Shaheen struck twice after lunch and fellow quick Naseem Shah and left-arm spinner Mohammad Nawaz took a wicket each.
Chandimal smashed 19-year-old Naseem for three straight boundaries to bring up his fifty and offer some cheer to the weekend crowd.
Chandimal, who made an unbeaten 206 in Sri Lanka's series-levelling Test win over Australia earlier this week, finally fell to a good catch by Yasir at cover with Ali taking his second wicket.
But Theekshana played a defiant knock in just his second Test and put on 45 runs for the last wicket with Rajitha, unbeaten on 12.