Hundreds gathered to applaud Jacinda Ardern as she left New Zealand's parliament to resign as prime minister, before Chris Hipkins was swiftly sworn in as her replacement.
Ms Ardern said last week she no longer had "enough in the tank" after steering the country through natural disasters, its worst-ever terror attack and the Covid-19 pandemic.
Mr Hipkins was sworn in by Governor-General Cindy Kiro during a ceremony in the capital Wellington, saying he was "energised and excited by the challenges ahead".
"This is the biggest privilege and responsibility of my life," he said.
The 44-year-old is now tasked with reversing the government's sagging popularity, which has been hampered by a deteriorating economy and a resurgent conservative opposition.
Ms Ardern made her last public appearance as prime minister earlier this morning, walking out of the distinctive Beehive parliament building as hundreds of staff and onlookers broke into a spontaneous round of applause.
Prince William was among the first to congratulate Ms Ardern.
"Thank you Jacinda Ardern for your friendship, leadership and support over the years, not least at the time of my grandmother's death," he wrote on his official Twitter account.
Folk singer Yusuf/Cat Stevens, who played a concert in memory of the 51 people killed during the 2019 Christchurch mosque massacre, also praised Ms Ardern.
On Twitter, he described her as a "supporter of the peace train who kept New Zealanders together following the terror attack in Christchurch".
Ms Ardern was first elected as prime minister in 2017, before riding a wave of "Jacindamania" to secure a second term with a landslide victory in 2020.
But her centre-left government has increasingly struggled over recent months as it battles soaring inflation, a housing affordability crisis, and a looming recession.
After chairing his first cabinet meeting, Mr Hipkins said it was an "immensely proud moment" for him to take "the baton of responsibility" from Ms Ardern.
He singled out the cost of living as one of his most urgent priorities, but was coy when pressed on other potential policy changes.
Ms Ardern, a global figurehead of progressive politics, has been credited with raising New Zealand's profile on the world stage.
Mr Hipkins said he would be building his own relationships, but he expected Mr Ardern "will put in a good word".
The father-of-two is nicknamed "Chippy" and describes himself as a "regular, ordinary Kiwi" from a working-class background who loves sausage rolls and cycling to work.
He has condemned the "utterly abhorrent" social media abuse levelled at Ms Ardern, which intensified during her years as prime minister.
Leaders who dare to dream will always face hardship. @jacindaardern – a supporter of the Peace Train who kept New Zealanders together following the terror attack in Christchurch – saw her nation as one, but people can't wait to smash it up again. #NewZealand #Unity #Peace pic.twitter.com/OUBcJCJ2cE— Yusuf / Cat Stevens (@YusufCatStevens) January 24, 2023
Ms Ardern said yesterday she would "hate" for her departure to be seen as "a negative commentary on New Zealand".
"I leave feeling gratitude for having this wonderful role for so many years," she said.
Ms Ardern will continue to sit in parliament, but has announced her intention to step back from the cut and thrust of daily politics.
She has also said she plans to marry her partner Clarke Gayford, a television personality who fronts a popular fishing show, and is looking forward to taking her daughter Neve to school.
Mr Gayford said Ms Ardern's resignation had been met with an "incredible outpouring of thanks and respect", and that he was immensely proud of her "superhuman efforts".