The treaty was adopted by a vote of 122 in favor with one country -- NATO member The Netherlands voting against -- while Singapore abstained.
Loud applause and cheers broke out in the UN conference hall following the vote that capped three weeks of negotiations on the text providing for a total ban on developing, stockpiling or threatening to use nuclear weapons.
Nuclear-armed states have dismissed the ban as unrealistic, arguing it will have no impact on reducing the global stockpile of 15,000 atomic weapons.
But supporters hailed a historic achievement.
Also Read
"We have managed to sow the first seeds of a world free of nuclear weapons," said Costa Rica's ambassador, Elayne Whyte Gomez, the president of the UN conference that negotiated the treaty.
Led by Austria, Brazil, Mexico, South Africa and New Zealand, 141 countries joined in drafting the treaty that they hope will increase pressure on nuclear states to take disarmament more seriously.
Even Japan -- the only country to have suffered atomic attacks, in 1945 -- boycotted the talks as did most NATO countries.
Nuclear powers argue their arsenals serve as a deterrent against a nuclear attack and say they remain committed to the nuclear Non-Proliferation Treaty (NPT).
The decades-old NPT seeks to prevent the spread of atomic weapons but also puts the onus on nuclear states to reduce their stockpiles.
Disarmament campaigners say the treaty will go a long way in increasing the stigma associated with nuclear weapons and will have an impact on public opinion.
Disclaimer: No Business Standard Journalist was involved in creation of this content