William Hague has spoken of his "deep disappointment" after a ground-breaking UN treaty that would regulate the international arms trade was blocked by Iran, Syria and North Korea.
The three nations refused to ratify the treaty at a meeting in New York.
It had required agreement by all 193 UN member states.
For more than a decade, activists and some governments have been pushing for international rules to regulate the estimated £40bn global arms trade and try to keep illicit weapons out of the hands of terrorists, insurgent fighters and organised crime.
After two weeks of intensive negotiations, many delegates had been optimistic that consensus - which doesn't require a vote - by all states was within reach.
Both Iran and North Korea are under UN arms embargoes over their nuclear programmes, while Syria is in the third year of a conflict that has escalated to civil war.
Amnesty International said all three countries "have abysmal human rights records - having even used arms against their own citizens".
But the British Foreign Secretary said he was determined to find a resolution.
Mr Hague said: "I am deeply disappointed that the negotiations on an Arms Trade Treaty closed today without consensus.
"After seven years of intensive work, the international community had never had a better chance to agree a global, legally binding treaty that would make the world a safer place.
"The UK has played a leading role and spared no effort to secure a treaty which would be both strong and globally applied, based on consensus.
"We have come very close. It is disappointing that three countries blocked the historic agreement that lay within our reach."
The Arms Trade Treaty would be the first international, legally binding treaty setting controls on the transfers of weapons, Mr Hague said, and would ban sales of weapons that would be used for genocide or war crimes.
Arms brokering would also be regulated, protecting legitimate trade.
He added: "This treaty is too important for us to let it end here. The overwhelming majority of the international community want this Treaty and we are determined to take it forward."
Other countries also refused to let the treaty die.
Mexico proposed that the UN conference go ahead and adopt the treaty without the support of the three dissenting countries, saying there was no definition of "consensus". Several countries supported the idea, but the Russian delegation objected.
Jo Adamson, the British ambassador to the UN Conference on Disarmament, struck a hopeful note. "This is not failure," she said. "Today is success deferred, and deferred by not very long."