Fifty countries on Wednesday signed a treaty to ban nuclear weaponsinfo-icon, a pact that the worldinfo-icon's nuclear powers spurned but supporters hailed as a historic agreement nonetheless.

"You are the states that are showing moral leadership in a world that desperately needs such moral leadership today," Beatrice Fihn, executive director of the International Campaign to Abolish Nuclear Weapons, said as a signing ceremony began.

Before the day was out, 50 states as different as Indonesiainfo-icon and Ireland had put their names to the treaty; others can sign later if they like. Guyana, Thailandinfo-icon and the Vatican also have already ratified the treaty, which needs 50 ratifications to take effect among the nations that back it.

They would be barred from developing, testing, producing, manufacturing, otherwise acquiring, possessing or stockpiling nuclear weapons "under any circumstances."

Seven decades after the United Statesinfo-icon dropped two atomic bombs on Japaninfo-icon during World Warinfo-icon II -- the only use of nuclear weapons -- there are believed to be about 15,000 of them in the world today. Amid rising tensions over North Koreainfo-icon's nuclear and missileinfo-icon tests, U.N. Secretary-General Antonio Guterres said Tuesday that the threat of a nuclear attack is at its highest level since the end of the Cold War.

"This treaty is an important step towards the universally held goal of a world free of nuclear weapons," he said Wednesday.Supporters of the pact say it's time to push harder toward eliminating atomic weapons than nations have done through the nearly 50-year-old Nuclear Non-Proliferation Treaty.

Under its terms, non-nuclear nations agreed not to pursue nukes in exchange for a commitment by the five original nuclear powers -- the U.S., Russiainfo-icon, Britaininfo-icon, Franceinfo-icon and Chinainfo-icon -- to move toward nuclear disarmament and to guarantee other states' access to peaceful nuclear technologyinfo-icon for producing energy.

More than 120 countries approved the new nuclear weapons ban treaty in July over opposition from nuclear-armed countries and their allies, who boycotted negotiations.The U.S., Britain and France said the prohibition wouldn't work and would end up disarming their nations while emboldening "bad actors," in U.S. Ambassador Nikki Haley's words.

French Foreign Minister Jean-Yves Le Drian has called the treaty "wishful thinking" that is "close to irresponsible." The nuclear powers have suggested instead strengthening the nonproliferation treaty, which they say has made a significant dent in atomic arsenals.

Brazilinfo-icon was the first country to sign onto the ban Wednesday, followed by nations from Algeriainfo-icon to Venezuelainfo-icon."Those who still hold nuclear arsenals, we call upon them to join this date with historyinfo-icon," Costa Rican President Luis Guillermo Solis said as he prepared to sign.