Russia has already stationed a first batch of tactical nuclear weapons in Belarus, Vladimir Putin says.
Speaking at an economic forum, he said they would only be used if Russia's territory or state was threatened.
The US government said there was no indication the Kremlin planned to use nuclear weapons to attack Ukraine.
"We don't see any indications that Russia is preparing to use a nuclear weapon," US Secretary of State Antony Blinken said after Putin's comments.
Belarus is a key Russian ally and served as a launchpad for Putin's full-scale invasion of Ukraine in February last year.
The tactical nuclear warheads are less powerful than much of the rest of Russia's nuclear arsenal. Putin said the transfer would be finished by the end of the (northern hemisphere) summer.
Answering questions after a speech at the St Petersburg International Economic Forum, Russia's president said the move was about "containment" and to remind anyone "thinking of inflicting a strategic defeat on us".
When asked by the the forum's moderator about the possibility of using those weapons, he replied: "Why should we threaten the whole world? I have already said that the use of extreme measures is possible in case there is a danger to Russian statehood."
The Russian leader is due to meet African leaders in St Petersburg after they visited Kyiv on Friday as part of a peace initiative they are presenting to both countries.
However, while they were in the city, it came under Russian missile attack.
South African President Cyril Ramaphosa called for de-escalation on both sides and negotiations for peace.
"We came here to listen and recognise what the people of Ukraine have gone through," he said.
But Ukraine's President Volodymyr Zelensky said instead of making diplomatic overtures to Russia, it should be frozen out diplomatically to send a message that the international community condemned its invasion.
Kyiv would not enter negotiations with Moscow while it still occupied Ukrainian territory, Zelensky said.
Putin also repeated his claim that Ukraine stood no chance of succeeding in its ongoing counter-offensive.
The Ukrainian military was also running out of its own military equipment and would soon only be using Western-donated equipment, he said.
"You can't fight for long like that," he said, warning that any F16 US fighter jets given to Ukraine "will burn, no doubt about it".
Ukraine has previously dismissed similar remarks, asserting they are making progress in recapturing territory in both eastern and southern Ukraine.
The BBC cannot independently verify battlefield claims.
The Russian leader also addressed economic themes, claiming that Western sanctions on Russia had failed to isolate it and instead led to an expansion in its trade with "the markets of the future".
He praised new deals with countries in Asia, the Middle East and Latin America - calling them "reliable, responsible partners".
- This story was first published byBBC.