Russian President Vladimir Putin has ended a one-day three-nation tour with a stop in Ankara. There he joined President Recep Tayyip Erdogan in criticising the US over Jerusalem.
Both warned the US that recognition of the city as Israel's capital risks escalating tensions in the region.
"Russia assumes that any peace agreement has to be built on previous decisions under UN. Specific details on the status of Jerusalem is a subject for the direct talks between Palestine and Israel," said President Putin.
President Erdogan also condemned Israel over the recent deaths of Palestinians:
"Israel sees the recent developments as an opportunity to increase pressure and violence against Palestinians. It's not possible for anyone with a conscience, morals or principles to ignore these murders."
Putin's tour which took in Syria and Egypt has highlighted Russia's expanding ties with key players in the Middle East.
The meeting between the two leaders was their third in one month and the eighth this year. Discussions also included developments in Syria, strengthening economic ties and Turkey's purchase of a Russian-made missile defence system which has annoyed NATO.
The S-400 missile systems should be completed by the end of the week. Turkey has been negotiating with Russia to buy the system for more than a year. Washington and some of its NATO allies see the decision as a snub because the weapons cannot be integrated into the alliance's defences.