Bernie Sanders has urged America to follow the lead of New Zealand in banning military style and semi-automatic weapons – a measure taken by the authorities in Wellington within days of the mosque shooting that left 50 people dead.

The Vermont senator, one of the early frontrunners of Democrats contesting for the party’s 2020 presidential nomination, said New Zealand had set an example with the speed of its response.

“This is what real action to stop gun violence looks like,” he said on Twitter. “We must follow New Zealand’s lead, take on the NRA and ban the sale and distribution of assault weapons in the United States.”

On Thursday, the government of New Zealand announced a ban on military-style weapons and high-capacity magazines. The move by the administration of prime minister Jacinda Ardern, came just a week after the mosque attack, allegedly carried out by a white supremacist, and which rocked the small nation.

The Associated Press said an immediate sales ban went into effect to prevent stockpiling, and that new laws were to be rushed through parliament that would impose a complete ban on the weapons.

New Zealand shootings: Victims of Christchurch mosque terror attacks Show all 11 1 /11 New Zealand shootings: Victims of Christchurch mosque terror attacks New Zealand shootings: Victims of Christchurch mosque terror attacks Zakaria Bhuiyan People gather hoping to find out information about Zakaria Bhuiyan who is still missing after the mosques shootings in Christchurch. David Moir/AFP New Zealand shootings: Victims of Christchurch mosque terror attacks Mucad Ibrahim Three-year-old Mucad Ibrahim, the youngest known victim of the mass shooting at two mosques in Christchurch, New Zealand, on 15 March 2019. Abdi Ibrahim via AP New Zealand shootings: Victims of Christchurch mosque terror attacks Nadeem Rasheed Nadeem Rasheed, brother of Pakistani Naeem Rashid who died alongside his son Talha Naeem, 21, who were killed in shooting at a Mosque in Christchurch, at their home town in Abbottabad, EPA New Zealand shootings: Victims of Christchurch mosque terror attacks Omar Nabi Omar Nabi speaks to the media about losing his father Haji Daoud Nabi, 71, in the mosque attack REUTERS New Zealand shootings: Victims of Christchurch mosque terror attacks Ash Mohammed Ash Mohammed, right, talks to a police officer about his father and two brothers who are missing near the Masjid Al Noor mosque AP New Zealand shootings: Victims of Christchurch mosque terror attacks Akhtar Khokhur Akhtar Khokhur, 58, shows a picture of her missing husband Mehaboobbhai Khokhar, 65. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Wasseim Alsati A note is seen on a window of a door at the family home of Wasseim Alsati in Christchurch on 17 March 2019. AFP/Getty Images New Zealand shootings: Victims of Christchurch mosque terror attacks Haroon Mahmood Relatives offer condolences to nephew (centre) of Haroon Mahmood, a Pakistani citizen who was killed in Christchurch mosque shootings. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Farid Ahmed Farid Ahmed (pictured) survived the Al Noor mosque shootings but his wife Husne was killed. AFP/Getty Images New Zealand shootings: Victims of Christchurch mosque terror attacks Syed Areeb Ahmed A relative shows a picture of Syed Areeb Ahmed, a Pakistani citizen who was killed the Christchurch mosque shooting. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Naeem Rashid A relative looks at a picture on a mobile phone of Pakistani nationals Naeem Rashid and his son Talha Naeem (right) who died in the Christchurch shootings. AFP/Getty Images

“Every semi-automatic weapon used in the terrorist attack on Friday will be banned,” said Ms Ardern. The prohibition included semi-automatic guns or shotguns that can be used with a detachable magazine that holds more than five rounds.

It also applies to accessories used to convert guns into what the government called “military-style” weapons, the news agency said.

The rapid action by New Zealand has been seen in stark contrast to faltering efforts to ban such weapons in the US, where up to 35,000 died from guns in 2017. Activists had long pointed to the lobbying power of the gun industry group the National Rifle Association (NRA), which Mr Sanders referred to in his tweet.

The group spends millions of dollars backing politicians who support its policies and threaten to fund challengers to those who do not fall into line. Figures show that in the 2016 election cycle, the NRA spent $55m on campaigns and adverts supporting candidates.

Support free-thinking journalism and attend Independent events

By far the largest portion of that money, around $30m, went to backing the campaign of Donald Trump.

The NRA did not immediately respond to enquiries on Thursday. A banner on its website claimed “Nancy Pelosi wants a national emergency to confiscate your guns in 2020”.

Mr Sanders is not the only person to have seized on the example set by New Zealand. Kris Brown, president of the Brady campaign, which has long sought to regulate weapons in the US, said: “This is a shining example of what can happen when our leaders take action, not sides.

“Prime Minister Ardern and her cabinet wasted no time in ensuring that the tragedy in Christchurch will not be repeated in their country, and they are providing a light for the world to follow.”

She added: “Now, it’s time for our own leaders at home to do the same.”

March For Our Lives, the student-led group founded in the aftermath of the February 2018 Parkland school shooting, also spoke out over what happened in New Zealand.

“No community on earth should have to experience the intense loss that comes from gun violence,” the group said, saying that it was helping to raise funds for the community in Christchurch.