A UN plan for Syria is a "milestone" in the efforts to end the conflict there, says US Secretary of State John Kerry.
He said the plan gave Syrians a "real choice... between war and peace".
The resolution, passed unanimously by the UN Security Council, sets out a timetable for formal talks and a unity government within six months,
However, the resolution makes no mention of the future role of Syrian President Bashar al-Assad.
Western countries have called for his departure, but Russia and China say he should not be required to leave power as a precondition for peace talks.
Mr Kerry said Mr Assad had "lost the ability to unite the country" but he also said that demanding Mr Assad's immediate departure was "prolonging the war".
However, while Western and Arab nations accept that Mr Assad can be part of the transition, they also insist he must be gone at the end of it.
France's Foreign Minister Laurent Fabius said the idea of Mr Assad standing in elections was "unacceptable".
Syria's UN ambassador Bashar Jaafari said there was a "glaring contradiction" between outside countries talking about letting Syrians decide their future yet also insisting on replacing Mr Assad.
UN Security Council Resolution on Syria (No. 2254)
- Calls for ceasefire and formal talks on a political transition to start in early January
- Groups seen as "terrorist", including Islamic State and al-Nusra Front, are excluded
- "Offensive and defensive actions" against such groups - a reference to air strikes by US-led coalition and Russia - to continue
- UN chief Ban Ki-moon to report by 18 January on how to monitor ceasefire
- "Credible, inclusive and non-sectarian governance" to be established within six months
- "Free and fair elections" under UN supervision to be held within 18 months
- Political transition should be Syrian-led
The resolution foresees talks between the Syrian government and opposition in early January.
Russian Foreign Minister Sergei Lavrov said it would be possible to reach an agreement on a unity government for Syria within six months.
The plan sets out a timetable for UN-supervised elections within 18 months, and stresses that the Syrian people will decide the future of their country.
The plan also calls for a ceasefire, but there is also disagreement over which armed groups should be designated as terrorists and consequently excluded from any talks or ceasefire.
Actions against groups considered terrorist organisations would not be affected, allowing Russian, French and US air strikes against Islamic State to continue.
The agreement demands that all parties cease attacks against civilians.
The Syrian war, which is heading towards its fifth year, has killed more than 250,000 people and displaced millions more, the UN says.
Lyse Doucet, Chief International Correspondent, BBC News: "Hugely ambitious"
A stubborn gridlock in the UN Security Council has long blocked any step towards a political resolution of Syria's devastating war. For years, everyone insisted there was no military solution. Nobody made much effort to achieve it.
The UN's first envoy Kofi Annan bitterly blamed the world body when he quit in 2012 after only one year in the job. His successor Lakhdar Brahimi frequently beseeched the Council to do more and often apologised to the Syrian people for failing them.
Now UN envoy Staffan de Mistura is tasked with organising Syria talks. This unanimous vote is a crucial step forward. But the goal of "credible, inclusive and non-sectarian governance" within six months is hugely ambitious.
President Assad's supporters will welcome a UN resolution that does not mention his role. Russia's growing diplomatic and military weight in this conflict helped achieve that compromise. But, for the opposition and their allies, it will continue to be the issue that will block progress every step of the way.