Colombo: Sri Lanka, needing 363 to win, were 47-4 in their second innings at stumps on the fourth day of the second and final Test against New Zealand at the P. Sara Oval in Colombo on Wednesday.
Thilan Samaraweera and Angelo Mathews were unbeaten on one each, while pacemen Doug Bracewell and Tim Southee took two wickets apiece.
New Zealand, who gained a 168-run lead, earlier declared their second innings at 194-9.
Sri Lanka lead the series 1-0 following their 10-wicket win in the opening Test in Galle.
Earlier, New Zealand declared their second innings at 194-9, setting Sri Lanka a target of 363 to win the match.
Skipper Ross Taylor (75), debutant Todd Astle (35) and Brendon McCullum (35) were the main scorers for New Zealand, while left-arm spinner Rangana Herath took three wickets for Sri Lanka.
The tourists slipped from 74-2 to 75-5 before skipper Ross Taylor and debutant Todd Astle took their team to strong position at the P. Sara Oval in Colombo.
The pair consolidated the innings after Sri Lankan fast bowler Nuwan Kulasekara and left-arm spinner Rangana Herath struck in quick succession in the afternoon.
Kulasekara had Kane Williamson (18) caught by Tharanga Paranavitana in the slips and then trapped Daniel Flynn leg-before with the last two balls of his eighth over.
Herath then struck with the second delivery of the next over, having Kruger van Wyk caught by Paranavitana at leg-slip for a duck for his second victim of the innings.
Herath also had Brendon McCullum stumped by Prasanna Jayawardene after the batsman had cracked seven fours in a brisk 43-ball 35.
Martin Guptill (11) was first to be dismissed, caught by Tillakaratne Dilshan on second attempt at gully off paceman Shaminda Eranga.
Tim Southee earlier finished with 5-62 for his third five-wicket haul in a Test innings and left-arm paceman Trent Boult with 4-42 as Sri Lanka were bowled out for 244 in their first innings in reply to New Zealand's 412.
New Zealand needed just 7.4 overs of pace in the morning to claim the last four wickets for 19 after the hosts had resumed at 225-6, with Boult taking three and Southee one.
Boult struck in successive overs when he had middle-order batsman Thilan Samaraweera (76) caught by Guptill at second slip and then trapped Suraj Randiv (39) leg-before.
Samaraweera fell at his overnight score while lower-order batsman Randiv made just five in the morning. The pair added 97 for the seventh wicket.
Southee then had Kulasekara (six) caught by Taylor at first slip before Boult ended the innings with the wicket of Herath (five), who fell to a brilliant left-handed catch by Williamson at gully.
Sri Lanka lead the series 1-0 following their 10-wicket victory in the opening Test in Galle.
Brief scores
New Zealand 412 (Taylor 142, Williamson 135, Flynn 53, Herath 6-103) and 194 for 9 dec (Taylor 75, Astle 35, Herath 3-67)
Sri Lanka 227 (Mathews 47, Samaraweera 76, Southee 5-62, Boult 4-42) and 47 for 4 (Bracewell 2-5, Southee 2-19)
Status Sri Lanka need 316 runs to win