Russian President Vladimir Putin warned Friday that any foreign troops sent to Ukraine during the ongoing war would be treated as “legitimate targets” by Moscow’s military.

Putin's comments came hours after European leaders repledged their commitment to a potential peacekeeping force, a prospect that Moscow has repeatedly described as "unacceptable.”

"If any troops appear there, especially now while fighting is ongoing, we assume that they will be legitimate targets,” he said during a panel at the Eastern Economic Forum in the far eastern Russian city of Vladivostok.

Putin also dismissed the idea of peacekeeping forces in Ukraine after a final peace deal, saying "no one should doubt” that Moscow would comply with a treaty to halt its 3½-year full-scale invasion of its neighbor.

He said that security guarantees would be needed for both Russia and Ukraine.