The Group of 20 adopted a consensus declaration at a summit on Saturday that avoided condemning Russia for the war in Ukraine but called on all states not to use force to grab territory.
Indian Prime Minister Narendra Modi announced that the Leaders' Declaration had been adopted on the first day of the weekend G20 summit in New Delhi.
"On the back of the hard work of all the teams, we have received consensus on the G20 Leaders Summit Declaration. I announce the adoption of this declaration," Modi told the leaders, including US President Joe Biden and heads of government and state from across the world.
The consensus came as a surprise as G20 is deeply divided over the war in Ukraine, with Western nations earlier pushing for strong condemnation of Russia in the Leaders' Declaration, while others demanded a focus on broader economic issues.
"We call on all states to uphold the principles of international law including territorial integrity and sovereignty, international humanitarian law, and the multilateral system that safeguards peace and stability," the declaration said.
"We... welcome all relevant and constructive initiatives that support a comprehensive, just, and durable peace in Ukraine.
"The use or threat of use of nuclear weapons is inadmissible," the statement added.
Ukraine's foreign ministry said the declaration was "nothing to be proud of", adding that a Ukrainian presence would have given participants a better understanding of the situation.
However, German Chancellor Olaf Scholz said the declaration demonstrated a clear position on Russia's invasion of Ukraine by saying that the territorial integrity of countries cannot be called into question with violence.
British Prime Minister Rishi Sunak said the declaration had "very strong language about Russia's illegal war in Ukraine".
"I think that is a good and strong outcome."
There was no immediate reaction from Russia, which is being represented by Foreign Minister Sergei Lavrov. He had said he would block the final declaration unless it reflected Moscow's position on Ukraine and other crises.
Russia's 2022 invasion of Ukraine has left tens of thousands of dead, displaced millions and sown economic turmoil across the world. Moscow denies committing atrocities during the conflict, which it terms a "special operation" to "demilitarise" Ukraine.
The declaration also called for the implementation of the Black Sea initiative for the safe flow of grain, food and fertiliser from Ukraine and Russia. Moscow pulled out of the agreement in July over what it called a failure to meet its demands to implement a parallel agreement easing rules for its own food and fertiliser exports.
India's Foreign Minister Subrahmanyam Jaishankar said China, Russia's main major ally, was supportive of the outcome.
"Differing viewpoints and interests were at play, but we were able to find common ground on all issues," he told a press conference.
The differing views on the war had prevented agreement on even a single communique at ministerial meetings during India's G20 presidency so far this year.
India's sherpa, the country representative to the G20, said the host nation worked "very closely" with Brazil, South Africa and Indonesia to reach a consensus on the language on the war in Ukraine in the summit document.
The declaration also said the group agreed to address debt vulnerabilities in low and middle-income countries "in an effective, comprehensive and systematic manner", but did not make any fresh action plan.
It said countries pledged to strengthen and reform multilateral development banks, while it accepted the proposal for tighter regulation of cryptocurrencies.
It also agreed that the world needs a total of US$4 trillion (RM18.71 trillion) of low-cost financing annually for the energy transition, with a high share of renewables in the primary energy mix.
The statement called for accelerating efforts towards a "phasedown of unabated coal power", but said this had to be done "in line with national circumstances and recognising the need for support towards just transitions".
Delhi closed down for summit
At the start of the day, Biden and other leaders were driven through deserted streets to a new, US$300 million conch-shaped convention centre called Bharat Mandapam, opposite a 16th-century stone fort.
Many businesses, offices and schools have been closed in the city and traffic restricted as part of security measures to ensure the smooth running of the most high-powered meeting to be hosted by the country.
Modi inaugurated the meeting by calling on members to end a "global trust deficit" and announced that the bloc was granting permanent membership to the African Union in an effort to make it more representative.
Despite the compromise over the Leaders' Declaration, the summit had been expected to be dominated by the West and its allies. Chinese President Xi Jinping is skipping the meeting and has sent Premier Li Qiang instead, while Russia's Vladimir Putin was also absent.
Biden, Scholz, Sunak, French President Emmanuel Macron, Saudi Arabia's Mohammed Bin Salman and Japan's Fumio Kishida, among others, are attending.
"It's incumbent upon the Chinese government to explain" why its leader would or would not participate, Jon Finer, the US deputy national security adviser, told reporters in Delhi.
Biden said on Saturday: "It would be nice to have him here but the summit is going well."
Finer said there was speculation that China is "giving up on G20" in favour of groupings like BRICS, where it is dominant.
BRICS includes Brazil, Russia, India, China and South Africa, and has agreed to add another six members – Saudi Arabia, Iran, Ethiopia, Egypt, Argentina and the United Arab Emirates – accelerating its push to reshuffle a world order it sees as outdated.