Turkish President Recep Tayyip Erdogan and Russian counterpart Vladimir Putin called on Wednesday for a ceasefire in Libya after talks in Istanbul, where they also inaugurated a "historic" gas pipeline.
The leaders used a joint statement to call for a truce from midnight on Sunday "supported by the necessary measures to be taken for stabilising the situation on the ground" in Libya, where they are seen as supporting opposing sides.Last week, Turkey sent its first troops to help defend the UN-backed Tripoli government and Erdogan has accused 2,5000 Russian mercenaries of supporting renegade strongman Khalifa Haftar -- claims denied by Moscow.
Earlier, they inaugurated the TurkStream pipelines, which will deliver Russian gas to Turkey and Europe via the Black Sea.
Erdogan described it as a "project of historic importance", while Putin noted the strengthening "partnership of Russia and Turkey in all domains".
TurkStream and the Nord Stream pipelines under the Baltic allow Russia to increase gas supplies to Europe without having to rely on Ukraine.
But Moscow's increasing domination of European energy markets has worried the United States, which last month sanctioned firms working on TurkStream and the almost-completed Nord Stream 2.
The ceremony in Istanbul reflected a dramatic improvement in ties between Russia and Turkey, who appeared on the verge of war less than five years ago after Turkey shot down a Russian jet.
They have established a regular dialogue over the Syrian conflict, despite being on opposing sides, but had appeared to be on a fresh collision course over Libya.
Putin arrived late on Tuesday after paying a surprise visit to Syria -- his first to Damascus since the war began -- at a moment of acute uncertainty in the Middle East following the assassination of top Iranian general Qasem Soleimani by the United States.
Syria remains a potential powder-keg for Erdogan and Putin's relationship.
Syrian government forces -- backed by Russia -- have ramped up bombardment of the last rebel strongholds in Idlib province in recent weeks, sending hundreds of thousands fleeing towards the Turkish border.
Erdogan has called for a truce in Idlib, following previous temporary halts to the fighting brokered with Russia in late 2018 and updated in August last year.
"Russia's demands are very simple," said Yury Barmin of the Moscow Policy Group think tank. "Turkey must do more to eliminate terrorist cells in Idlib. The discussions will be around this idea."
Improved ties between the two countries have been facilitated by a number of major energy and defence deals. Russia is building Turkey's first nuclear plant and last year delivered the S-400 missile defence system, to the consternation of Turkey's NATO allies.
Putin earned goodwill in Turkey after his quick support for Erdogan following an attempted coup in July 2016.
The two men have developed a "strong personal relationship", according to Jana Jabbour of Sciences Po university in Paris, who adds that "their economic and energy plans are interdependent".
The TurkStream project, which was temporarily halted during a frosty patch in Russia-Turkey relations, includes two parallel pipelines of more than 900 kilometres.
The pipeline links Anapa in Russia to Kiyikoy in northwestern Turkey and has already begun deliveries to Bulgaria. It is being extended towards Serbia, Hungary and Austria.