A total of 80 countries agreed that the territorial integrity of Ukraine must be the basis of any peace agreement.
The Peace Summit for Ukraine is being held in Burgenstock, Switzerland on June 15 and 16.
Switzerland, which hosted the summit, said more than 90 countries participated in the talks, and the vast majority of them signed communiques, according to a list published by Swiss organizers at the end of the session.
Saudi Arabia, India, South Africa, Thailand, Indonesia, Mexico and the United Arab Emirates were among the countries that participated but did not sign the final communiqué.
Brazil, which was listed as an "observer" on the list of attendees, also did not appear as a signatory.
"We believe that achieving peace requires participation and dialogue between all parties," the document states.
"We reaffirm our commitment... to the principles of sovereignty, independence and territorial integrity of all states, including Ukraine, within their internationally recognized borders," the document added.
The final document also calls for all prisoners of war to be released in a "full exchange" and for all Ukrainian children who have been "deported and illegally displaced" to be returned to Ukraine.
Kiev accuses Russia of abducting nearly 20.000 children from parts of the east and south of the country over which its forces have taken control.
Working groups at the summit also dealt with issues of global food safety and nuclear safety.
"Food security must not be weaponized in any way," the declaration states, adding that access to ports in the Black and Azov Seas is "critical" for the global food supply.
And the countries also called for Ukraine to be given "full sovereign control" over the Zaporozhye nuclear power plant.
Located in southern Ukraine, the facility is the largest nuclear site in Europe and has been controlled by Russian forces since the start of the war.
Dozens of world leaders gathered in a Swiss resort hoped to reach a consensus on condemning Russia's invasion of Ukraine on the second and final day of their gathering on June 16.
Russia's absence from the Ukraine-initiated Global Peace Summit dampened hopes for any progress, as did China's decision to stay away.
The June 15-16 summit is the culmination of Ukrainian President Volodymyr Zelensky's efforts over the past 19 months to engage global leaders in helping to end Europe's biggest war since World War II.
Switzerland has agreed to host the summit in hopes of paving the way for a future peace process involving Russia. Zelensky did not want Russia to participate in this phase.
Ihor Zovkva, Zelensky's deputy chief of staff, told reporters on the sidelines of the summit that Kyiv decided to focus on nuclear and food security and the return of prisoners of war and children abducted from Ukraine during the conflict "because the majority of the international community today is united around those positions."
Answering a question from RSE, Andrij Jermak, Zelenskiy's chief of staff, told reporters on June 15 that this document will be presented to Russian representatives who will be invited to the next summit.
The host country for the next conference will also be decided on June 16 at the peace summit.
Saudi Arabia is believed to be one of the candidates, and Foreign Minister Prince Faisal bin Farhan Al Saud said on June 15 that the kingdom was ready to help the peace process, but warned that a sustainable solution would depend on "difficult compromise".
"Joint effort for peace"
Ukrainian President Volodymyr Zelensky welcomed a gathering of world leaders in Switzerland to find a way to end Russia's more than two-year-long invasion of his country, although the absence of Russian and Chinese officials dimmed the prospect of much progress.
Zelenski told reporters that representatives of 101 countries and international organizations gathered for two-day peace talks.
"We managed to bring back to the world the idea that joint efforts can stop war and establish a just peace," Zelenski said on June 15, opening the negotiations, accompanied by Swiss President Viola Amherd.
"The leaders and leadership of each nation are equally important to us. And everything that is agreed at the summit today will be part of the peace process that we all need. I believe that we will witness history being made here at the summit," said Zelenski.
A day before the two-day summit opened on June 15, Russian President Vladimir Putin called on Kiev to abandon its NATO ambitions and hand over four provinces that Moscow claims it claims.
The proposal, which Kiev called "manipulative" and "absurd" and tantamount to surrender, signaled Putin's determination to continue the conflict, casting a further shadow over the meeting.
Bonus video: