(CNN) -- New Zealand ended the first day of their deciding Test with Pakistan in Napier in a commanding position despite a battling century from opener Imran Farhat.
Farhat finished unbeaten on 117 but he was the only batsman in Pakistan's top order to make a significant contribution as Iain O'Brien, in his final match before retiring from Test cricket, produced a devastating spell of four for 15 in only eight overs.
Despite some late-order resistance from Umar Gul (24), Kamran Akmal (22) and Mohammad Aamer (23) Pakistan were dismissed for 223 in 64.3 overs in what was a disappointing showing after they leveled the series 1-1 in Wellington last week.
The Pakistan innings finished with a flourish as Danish Kaneria struck 16 in boundaries from 13 balls before he edged the a ball from Daryl Tuffey to wicketkeeper Brendon McCullum who claimed his fifth catch of the match.
O'Brien ultimately finished with four for 35 while fellow seamer Tuffey also took an equal share of the wickets as he finished with four for 52 while Farhat carried his bat.
New Zealand openers Tim McIntosh (31 not out) and Test debutante Bradley-John Walting (13no) negotiated a tricky 19 overs to reach the close at 47 without loss.
Elsewhere, England captain Andrew Strauss struck a century against a South African Invitational XI as his side warm up for the forthcoming Test series against the Proteas.
Kevin Pietersen also found form for the first time on the tour as he made 71 as England finished on 317 for five at the end of the first day of their two-day warm-up match.