New Zealand hit back on Day 3 of the second Test against India at the Basin Reserve in Wellington.
Home captain Brendon McCullum made his ninth Test century as the Black Caps finished the day on 252-5 in their second innings, a lead of six.
McCullum and wicketkeeper BJ Watling shared an unbroken 158-run partnership for the sixth wicket as the hosts overturned a 246-run deficit on first innings.
|New Zealand 2nd Innings: 252 for 5 (99 overs)|
|Fulton||lbw||b Zaheer Khan||1||6||6|
|Rutherford||c Dhoni||b Zaheer Khan||35||77||55|
|Williamson||c Dhoni||b Zaheer Khan||7||37||22|
|Latham||c Dhoni||b Shami||29||110||64|
|B McCullum||not out||114||350||237|
|Anderson||c and b Jadeja||2||12||6|
|Extras||4nb 0w 2b 6lb||12|
Resuming on 24-1, the Kiwis lost Kane Williamson in the second over of the morning when he was caught behind off Zaheer Khan for just seven.
The Black Caps were in danger of suffering an innings defeat as they went to lunch at 87-4.
Hamish Rutherford departed in the same manner as Williamson for 35, and debutant Tom Latham was dismissed for 29 with the last ball of the morning. Keeper MS Dhoni took his third catch, this time off Mohammed Shami.
Only a further 10 runs had been added when Corey Anderson (2) got a leading edge to slow left-armer Ravindra Jadeja who took the return catch.
However, then McCullum and Watling changed the face of the game with NZ's highest sixth-wicket partnership in the second innings of a Test match.
South African-born keeper Watling made a patient half-century, his seventh in Test cricket, off 190 balls.
McCullum played with more freedom, and his century came in the most emphatic fashion, a six off Ishant Sharma over wide long-on.
His ton came off 197 balls and featured 12 boundaries, but there was great acceleration with his second fifty coming off 51 balls.
New Zealand will look to build their lead on Monday and set India as a testing target as they look to win the series 2-0.