Retiring Mahela Jayawardene took on the unusual role of opening batsman to hand Sri Lanka a thrilling seven-wicket victory on the final day of the first cricket Test against Pakistan in Galle.
The hosts, needing 99 to win in a minimum of 21 overs, beat fading light and approaching rain to cruise home in the 17th over.
Jayawardene, who is due to retire from Test cricket after the two-match series, scored 26 before Kumar Sangakkara (21) and skipper Angelo Mathews (25 not out) chipped in lower down the order.
The win was set up by left-arm spinner Rangana Herath, who claimed six for 48 that bundled Pakistan out for 180 in their second innings in the post-tea session.
The second and final Test will be played at the Sinhalese Sports Club in Colombo from Thursday.