Lawmakers in New Zealand voted almost unanimously on Wednesday to change gun laws, less than a month after 50 people were killed in Christchurch mosque attacks.
The parliament passed the gun reform bill by 119 to 1.
It must now receive royal assent from the governor general to become law.
"There have been very few occasions when I have seen parliament come together in this way, and I can't imagine circumstances when it is more necessary," Prime Minister Jacinda Ardern said.
Earlier, Ardern had banned the sale of all military-style semi-automatics (MSSA) and assault rifles just six days after the March 15 shooting.

St. Petersburg region port, oil terminal hit in Ukrainian drone attack
Thousands protest in Germany as far-right AfD sets sights on power
Trump extols America, rails at communism in US 250th celebration
Zelenskyy denies Russian capture of key eastern city Kostiantynivka
Keiko Fujimori declared winner of Peru presidential race
Ukrainian rescuers clear rubble as Kyiv mourns 30 killed in Russian attack
Monaco blast suspect is a Ukrainian woman who fled to Germany
Clinical trials begin for two potential Ebola treatments
