Turkey warned Egypt against any deployment of forces in the Libyan civil war and sharply criticized French President Emmanuel Macron’s role, highlighting the threat of escalating violence and geopolitical rivalries in the oil-rich country.

The remarks by Ibrahim Kalin, spokesman of Turkish President Recep Tayyip Erdogan, come days after Egypt’s parliament gave the green light for possible military intervention in Libya to support eastern commander Khalifa Haftar. Turkey backs the internationally recognized Libyan government based in Tripoli.

"The recent announcement by the Egyptian government and the parliament giving the government the mandate — or the license — to send Egyptian troops into Libya is very counterproductive,” Kalin said Thursday during an online event organized by the Brussels-based European Policy Centre. "It will be a dangerous military adventure for Egypt.”