New Zealand claimed a historic 167-run victory on the final day against Sri Lanka in Colombo, a result which squares the two-Test series at 1-1.
Requiring six further wickets to clinch a first win in Sri Lanka since 1998, the Black Caps completed victory in the final session when Angelo Mathews fell to Trent Boult for 84.
Sri Lanka resumed day five on 47-4 chasing an unlikely 363 for victory, with survival their more realistic aim.
A calamitous mix-up between Mathews and Thilan Samaraweera gifted the Black Caps a wicket early in the day as the latter was left stranded when on only seven.
Mathews and wicketkeeper Prasanna Jayawardene negotiated the remainder of the morning session and took their partnership to 56 before the Sri Lanka gloveman edged to opposite number Kruger van Wyk to give leg-spinner Todd Astle his first Test wicket.
Suraj Randiv fell without scoring to put New Zealand three wickets from victory, but Mathews reached a dogged 178-ball half-century with his fifth boundary, hammered over mid-wicket off Astle, before repeating the stroke next ball.
Nuwan Kulasekara hit Astle for two sixes in an over and Mathews lifted Jeetan Patel beyond the ropes but resistance was still the order of the day as Sri Lanka reached tea on 167-7.
The outcome of both the match and series remained in the balance at this point, however the arrival of the second new ball proved the catalyst for a famous New Zealand win.
Seamers Boult (3-33) and Tim Southee (3-58) quickly snared wickets eight and nine respectively and the former squared the series when he ended Mathews' 228-ball vigil.