New Zealand, who trailed Sri Lanka by 18 runs in the first innings, finished on 195 for seven.
Galle: A fighting half-century by wicket keeper-batsman BJ Watling helped New Zealand to take a lead of 177 at stumps on day three in the first Test match against Sri Lanka in Galle on Friday.
New Zealand, who trailed Sri Lanka by 18 runs in the first innings, finished on 195 for seven and a target around 200 could prove tricky for the hosts.
Spinners have long ruled the roost at Galle and towards the tail end of the game they tend to become even more threatening.
The highest successful run chase in here is 99 by Sri Lanka against Pakistan in 2014 and armed with a three-pronged spin attack, New Zealand should be already feeling comfortable.
It was a thrilling day's Test match with both teams fighting tooth and nail for the initiative and at stumps on day three New Zealand emerged on top thanks to the efforts of Watling, who finished unbeaten on 63.
New Zealand had slumped to 25 for three losing top batsmen Ross Taylor (3) and Kane Williamson (4) cheaply and at 124 for six with only a lead of 106 runs and four wickets remaining, they were playing catch up.
But Watling found an ideal partner in Tim Southee as the pair shared a 54-run stand to turn the game in New Zealand's favour.
Sri Lanka were sloppy on the field with Southee dropped three times. Lasith Embuldeniya provided the much-needed breakthrough when Southee gave him the charge and was stumped by Niroshan Dickwella. He made 23. It was Embuldeniya's fourth wicket in the innings.
Watling had been given out leg before to Embuldeniya when he was on one. But the batsman successfully reviewed the decision.
Watling who has six Test hundreds and posted a career best unbeaten 142 against Sri Lanka was again being a thorn in their flesh with an unbeaten 63 that came off 138 balls with five fours.
Earlier, after resuming on 227 for seven, Niroshan Dickwella top scored for Sri Lanka with 61 as they went onto post 267. Dickwella and Suranga Lakmal were involved in a crucial 81 run stand for the eighth wicket that enabled them to take a lead. Lakmal made 40.
Ajaz Patel became the first New Zealander to take five wickets in Galle and he was well backed up by William Somerville and Trent Boult, who shared five wickets between the two of them.