Dinesh Chandimal and Lahiru Thirimanne have put on a century stand to steer Sri Lanka away from a follow-on in the first Test against India in Galle.
The hosts, who trailed India by 192 runs in the first innings, fought back from 5-95 to reach 6-263 in their second knock by tea on the third day.
Chandimal and Thirimanne, who joined hands before lunch with their team still 98 runs from making India bat again, launched a brilliant counter-attack to put on 125 for the sixth wicket.
Chandimal was unbeaten on a run-a-ball 98 with 11 boundaries and two sixes and Thirimanne made 44. Sri Lanka now lead by 71 runs with four wickets in hand.
As the pair settled down, the Indians were left to rue the refusal by their powerful cricket board to use the Decision Review System for their bilateral matches.
Both batsmen were fortunate to get into double figures after surviving three appeals for catches close to the wicket – two against Chandimal and one against Thirimanne – in the last three overs before lunch.
Replays showed all three catches were clean, frustrating India’s bid to force an innings victory in the first match of the three-Test series.
Jehan Mubarak kept Chandimal company at tea on 23 after Thirimanne was snapped up at slip off Ravichandran Ashwin to give India its lone success in the post-lunch session.
Earlier, Kumar Sangakkara scored 40 in his penultimate Test and captain Angelo Mathews made 39, the pair adding 87 for the fourth wicket after Sri Lanka were reduced to 3-5.
Sri Lanka, who resumed at 2-5, lost nightwatchman Dhammika Prasad off the first ball of the day to give India a flying start.
Prasad attempted to fend off a short ball from Varun Aaron and gloved a catch to a diving Ajinkya Rahane at gully.
Mathews and Sangakkara took charge with a series of attacking shots, including a straight six and a reverse-sweep boundary by the Sri Lanka captain off Ashwin.
Sangakkara, who looked in good form during his 70-ball innings in which he hit five boundaries, was dismissed against the run of play 20 minutes before lunch.