President Vladimir Putin said the Russian army had 'saved Syria as a state' after meeting with leader Bashar al-Assad, as Syrian regime forces take an upper hand over rebels and the IS group.
Monday's talks came during an announced "working visit" by Assad to the Black Sea resort of Sochi, ahead of a summit between Putin and the leaders of Turkey and Iran on Wednesday aimed at re-booting the Syrian peace process.
"As for our joint work in the fight against terrorism in Syria, this military operation is coming to an end," Putin said, according to a transcript published on the Kremlin's website.
The Russian leader praised Assad and predicted terrorism would suffer an "inevitable" defeat in the country.
"Thanks to the Russian army, Syria has been saved as a state. Much has been done to stabilise the situation in Syria," the transcript said.
"It is in our interest to advance the political process... we don't want to look back and we are ready for dialogue with all those who want to come up with a political settlement," Assad said in translated comments.
Putin said he would consult world leaders on his talks with Assad, including with US president Donald Trump in a telephone call expected on Tuesday.
The Russian army's Chief of General Staff, Valery Gerasimov, told Russian news agencies that "despite the fact that there remains a raft of unresolved problems" the military stage "is coming to its logical conclusion".
Putin will Wednesday host Turkey's Recep Tayyip Erdogan and Iran's Hassan Rouhani for the first in a series of summits on the peace process, ahead of parallel UN-led talks in Geneva set for November 28.
The meeting -- the first such three-way summit between the trio -- comes as Ankara, Moscow and Tehran cooperate with increasing intensity on ending the over six-year civil war in Syria that has left 330,000 dead and millions homeless.
The cooperation comes despite Turkey still officially being on an opposite side of the Syria conflict from Russia and Iran, which are key Assad backers.
"Assad's visit...shows that there was a need to relay the Syrian leadership's position on a future settlement to the Kremlin, and that (Assad) was interested in the forthcoming summit with the presidents of Iran and Turkey," said Russian political analyst Azhdar Kurtov.
"It is unlikely this was just another demonstration of the Kremlin's political loyalty to Assad," he told AFP.
"The open-war phase in the Syria conflict will soon be over and the question of a political solution will become more pressing than before."
Russia, Iran and Turkey have backed negotiations in the Kazakh capital Astana that have brought together the representatives of the opposition and the regime seven times this year.
'Relaunch direct negotiations'
The talks led to the creation of four so-called "de-escalation zones" that produced a drop in violence, but sporadic fighting and bombardment has continued.
Moscow is now seeking to steer the process in a political direction.
The Sochi summit will help to "relaunch direct negotiations between the Syrian government and the range of the opposition", said Russian Foreign Minister Sergei Lavrov.
Moscow's military intervention in Syria from 2015 is widely seen as tipping the balance in the conflict.
Since then the Syrian army has reclaimed the ancient city of Palmyra from the IS group and driven rebels out of their northern bastion Aleppo.
This week regime forces also ousted the IS from its last urban stronghold in the country, Albu Kamal.
Previous attempts to end the war have stalled over the question of the fate of Assad.
But Turkey is showing greater flexibility, even if it remains unlikely that it will officially accept the prospect of the Syrian president remaining in power, said Timur Akhmetov, a Turkey expert at the Russian International Affairs Council.
"For now, to keep a say in the future political negotiations is more important for Turkey than to have Assad departed from power," he told AFP.
Different factions of the Syrian opposition will meet from Wednesday in Riyadh in talks hosted by Saudi Arabia.
The aim of the Saudi-backed High Negotiations Committee is to reach consensus on a strategy for talks in Geneva, which will focus on a new constitution for Syria and fresh elections.