Turkey said Monday it was blocking warships from the key Bosphorus and Dardanelles straits in line with a convention that gives it control over the passage of military vessels in the strategic area.
"We have alerted both countries of the region and elsewhere not to pass warships through the Black Sea," Foreign Minister Mevlut Cavusoglu said. "We are applying the Montreux Convention."
The 1936 Montreux Convention governs the free movement of commercial ships in peacetime through the Bosphorus and the Dardanelles straits.
But it grants Turkey the right to block the passage of warships in the Dardanelles and Bosphorus Straits, that connect the Aegean, Marmara, and Black Sea, in wartime if threatened.
Turkish President Recep Tayyip Erdogan had just clarified Turkey's position as a NATO member: "not to abandon either Russia or Ukraine" and not to "cede Turkey's national interests".
"We have decided to use the Montreux Convention to prevent the escalation of the crisis," he said after a cabinet meeting.
Ukraine had last week officially asked Turkey to close the Dardanelles Strait - and thus access to the Black Sea - to Russian ships.
NATO member Turkey, which has strong ties with both Russia and Ukraine, did not immediately respond to this request.
"Russia asked us if we would apply the Montreux Convention if necessary. We told them we would apply it word for word," Cavusoglu said.
He added that Turkish experts had been studying the situation to assess "whether there is a state of war from a legal point of view".
Turkey is navigating its own narrow passage, diplomatically, between its ally Ukraine, to which it has sold combat drones used against Russian tanks, and Russia, on which it depends for its gas and grain supplies.
However Turkey on Sunday officially recognised Russia's attacks on Ukraine as a "state of war".
Erdogan on Monday said he considers "Russia's attack on Ukrainian territory as unacceptable" and hailed the struggle of the Ukrainian government and people.