Italy has condemned Ukraine’s attacks on Russian vessels in Libyan waters, saying Kyiv was wrong to “violate Libya’s sovereignty”. The criticism marks a rare strain in Rome’s relationship with Ukraine, which Italy has largely supported since Russia’s full-scale invasion in 2022, including through military assistance.

The dispute comes amid concern about foreign powers’ involvement in divided Libya and the possibility that other countries could be drawn further into the Russia-Ukraine conflict. Italy says it was not told in advance about the Ukrainian operation.

Kyiv said it sank a Russian warship and hit a cargo vessel carrying military equipment off Libya’s coast on Sunday night. The strike on the warship at Benghazi port in eastern Libya killed two naval officers of the self-styled Libyan National Army (LNA), according to Libya’s eastern-based forces.

Ukraine’s Foreign Minister Andrii Sybiha called the vessels legitimate targets and said Kyiv had the legal right to defend itself against “Russian aggression”. He said the operation was “not intended to harm Libya or its people” and that Ukraine respects Libya’s territorial integrity.

“Ukraine is not ‘dragging’ anyone into the war or ‘transferring’ the war anywhere,” Sybiha said in a statement on Telegram.

Musa Al-Koni, vice president of Libya’s Tripoli-based Presidential Council, called the attack “a declaration of war against the Libyan state”. He added that Libyan authorities “hold the Ukrainian side fully responsible for these terrorist acts”.

The LNA, which controls eastern and southern parts of Libya and has close relations with Russia, said it would retaliate “at the appropriate time and place, and by the appropriate means”. Libya is divided between the UN-recognised government in Tripoli and a parallel administration in Benghazi, backed by the LNA and its commander, Khalifa Haftar.

Italy’s Foreign Minister ⁠⁠Antonio Tajani said Ukraine had made a mistake by “violat[ing] Libya’s sovereignty” and said Rome had received no prior notice. Italy has a small military presence in Libya.

“Italy was absolutely unaware of Kyiv’s intentions to strike in Libyan territorial waters, even inside a port,” Tajani told Italy’s Corriere della Sera newspaper.

The far-right League party, part of Italy’s coalition government, also criticised the attack, saying it could sow instability in Libya. Italy has provided Ukraine with more than 3 billion euros ($3.29bn) in military aid, according to data from the Kiel Institute think tank, and has backed sweeping sanctions against Russia.

But Italy’s government is divided over further support for Kyiv. Deputy Prime Minister Matteo Salvini, who leads the League, opposes additional weapons shipments or funding.

Matteo Villa, a senior research fellow at the Italian Institute for International Political Studies (ISPI), told Al Jazeera the attack off Libya is likely to deepen those domestic tensions. It “gives Salvini an opportunity to strengthen his case, questioning whether Western military assistance risks enabling Ukraine to pursue objectives that run counter to Italy’s own national interests”, Villa said.

Italy’s proximity to Libya and its economic and strategic interests help explain Rome’s concern. Its southern islands are 300km (186 miles) from the Libyan coast, and Italy has spent years cultivating ties with rival factions in western and eastern Libya.

“Over the past few years, Rome has shifted from almost complete support for the UN-backed Western government in Libya towards building working relationships with the Haftar-controlled East as well,” Villa said.

Italy has also provided funding, equipment and training to Libya’s maritime authorities for years, despite reports of migrants being abused and tortured in Libyan custody. The policy aims to curb irregular migration from Libya to Italy, one of the most perilous and contested routes into Europe.

Alessia Melcangi, a nonresident senior fellow with the North Africa Program at the Atlantic Council’s Rafik Hariri Center and Middle East Programs, said Italy’s condemnation partly serves as “damage control” as Rome seeks to balance competing geopolitical interests.

“Rome needs to demonstrate that its relationships with Kyiv, Tripoli and Benghazi give it meaningful influence over developments affecting its security,” Melcangi told Al Jazeera. “Otherwise, perceptions of exclusion or ambiguity could cause lasting diplomatic damage.”

Villa said Rome’s concerns also stem from Libya’s importance to Italy’s energy supplies and “migration control”. “Last year, Libya accounted for roughly a quarter of Italy’s crude oil imports, making it its largest supplier, and the country is by far the main departure point for migrants reaching Italy by sea,” he said.

Aldo Liga, a research fellow at the Middle East and North Africa Centre at ISPI, told Al Jazeera that further destabilisation of Libya would “threaten the security of trade routes and energy flows”, creating a volatile security situation in the Strait of Sicily. “Instability in Libya is perceived as a direct threat to Italy’s national interests,” he said.

Tajani also cited the presence of Italian military personnel and petroleum company Eni in Libya as concerns about the Ukrainian intervention. “What happened is worrying,” he told Corriere della Sera, referring to the attack. “The war between Russia and Ukraine must be prevented from widening, avoiding new outbreaks from occurring.”