Brendon McCullum was unable to provide one last act of heroics in his final Test innings for New Zealand as Australia put themselves in pole position after day three of the second Test in Christchurch.
After his day-one fireworks, where he blasted the fastest ever Test century off just 54 balls, the stage was set for McCullum to deliver some more vital runs as the Black Caps tried to wipe out a 135-run first-innings deficit.
However, he was one of four New Zealand batsmen to fall as Australia reduced them to 121 for four after being bowled out for 505 earlier in the day.
McCullum made 25 before slapping Josh Hazlewood to mid-wicket, needlessly trying to repeat a six he had hit the previous ball. That maximum was his 107th in the five-day format - more than anyone else - and his batting career ended with 6,453 runs at an average of 38.64.
Any hopes McCullum has of bowing out with a win will rest initially with Kane Williamson, who is 45 not out and vital to New Zealand posting a defendable target on day four.
James Pattinson was chief destroyer for the Australians as he took 3-29 from 12 overs, sending Martin Guptill (0), Tom Latham (39) and Henry Nicholls (2) back to the pavilion with some highly-skilled swing bowling.
The Black Caps will have been happy to restrict their deficit to 135 and they had Neil Wagner to thank for it as he claimed a second career five-wicket haul.
After not-out batsmen Adam Voges and Nathan Lyon had taken the tourists to 464 for five, Lyon knicked off to off-spinner Kane Williamson before Wagner sparked a collapse with a return to the short-ball tactics which saw off centurions Joe Burns and Steve Smith on day two.
Voges, who made 60, and Mitch Marsh both pulled into the heavily packed legside field while the left-armer also got rid of Peter Nevill and Hazlewood to finish with 6-106 as Australia lost their last five wickets for 39.
However, they made early inroads into New Zealand's second innings, with Williamson and Corey Anderson seeing the hosts through to the close, though they still trail by 14.