New Zealand has put its second-largest city back into lockdown after recording four new Covid-19 cases, ending a 102-day streak without a local infection.
A three-day lockdown was swiftly imposed in Auckland after the cases were confirmed.
The four new cases are all members of a single family. None had travelled recently.
The restrictions will come into effect on Wednesday, as authorities scramble to trace contacts of the family.
Auckland residents will be asked to stay at home, large gatherings will be banned, non-essential businesses will be shut, and some social-distancing restrictions will be reintroduced in the rest of the country.
New Zealand has fared better than other countries, recording 1,220 confirmed cases and 22 deaths since the virus arrived in late February.
Before Tuesday, New Zealand had gone 102 days without recording a locally transmitted case of Covid-19, one of the few countries to reach such a milestone.
All 22 active cases of the virus before Tuesday’s announcement were among returning travellers quarantined in isolation facilities.
Praised internationally for its handling of the pandemic, the country’s government has lifted almost all of its lockdown restrictions, first imposed in March.
An early lockdown, tough border restrictions, effective health messaging and an aggressive test-and-trace programme have all been credited with virtually eliminating the virus in the country.
But as infections continue to rise across the world, surpassing 20 million globally on Tuesday, New Zealand officials have warned against complacency.
Announcing the lockdown, Prime Minister Jacinda Ardern said it was necessary to go hard and go early to stamp out the virus.
Auckland would move to level three restrictions from 12:00 local time (01:00 BST) on Wednesday as a “precautionary approach”, she said.
“This is something we have prepared for,” Ms Ardern said at a news conference.
“We have had 102 days and it was easy to feel New Zealand was out of the woods. No country has gone as far as we did without having a resurgence. And because we were the only ones, we had to plan. And we have planned,” she said.
The World Health Organization (WHO) had hailed New Zealand as an example to others for having “successfully eliminated community transmission”.
But other countries have had early success in suppressing the virus, only to see infections rise again after lifting lockdown restrictions that damaged the economy.
Vietnam went 99 days with no community transmission until July, when a 57-year-old man in Da Nang tested positive for the virus.
By the end of July, Da Nang was the epicentre of a new coronavirus outbreak, leading to the country’s first coronavirus death since the pandemic began.
Australia, too, has seen a resurgence of Covid-19 in some states, including New South Wales and Victoria, where a strict lockdown has been imposed.