A Ukrainian drone attack on a Russian warship in Benghazi has drawn condemnation from both of Libya’s rival political camps, raising concern that the strike could complicate efforts to reunify the country. On Monday, Ukrainian President Volodymyr Zelenskyy said Ukraine was responsible for the attack on the ship, which was docked in the Libyan port a day earlier.

Libya has been divided since the fall of longtime leader Muammar Gaddafi in 2011. The internationally recognised Government of National Unity (GNU), led by interim Prime Minister Abdul Hamid Dbeibah, is based in Tripoli in the west. In the east, authorities are linked to military commander Khalifa Haftar.

Haftar has long cultivated close ties with Russia. Moscow has allegedly supplied his self-described Libyan National Army (LNA) with weapons, mercenaries and diplomatic backing, helping him consolidate control over much of eastern Libya. In return, Russia has kept a military and logistical foothold in the country, with ports, airfields, storage and maintenance facilities, as well as overland routes supporting its operations elsewhere in Africa.

Russia is believed to have a military presence in Sudan, Mali, the Central African Republic, Niger and Burkina Faso, among other countries. An estimated 1,000 to 1,800 Russian personnel are in Libya, including members of the Africa Corps, a unit within Moscow’s Ministry of Defence that has sought to bring Russian private military companies in Africa under government control.

Eastern Libya’s importance as a Russian military hub grew after Syrian President Bashar al-Assad, a key regional ally of Moscow, fell from power in December 2024, said Ruslan Trad, nonresident fellow of Global Security at the Atlantic Council.

“Russia’s bases in Libya are less about fighting in Libya itself than about sustaining Moscow’s wider military and political footprint across the Sahel and Central Africa. They function as a logistics bridge between the Mediterranean and Russia’s partners and deployments deeper in the continent,” Trad told Al Jazeera.

“Without this hub, Russia would have to sustain operations thousands of kilometres from Russia with far fewer reliable transit options.”

The GNU has sought to counterbalance Russia’s role by building international partnerships, particularly with Turkiye, and has taken a firmly pro-Ukraine stance in recent years. In 2022, it condemned Russia’s invasion of Ukraine without qualification. Later that year, it was the only Arab country to vote in favour of suspending Russia’s participation in the United Nations Human Rights Council.

The relationship deepened in 2023, when Dbeibah pushed to establish an official Ukrainian embassy in Tripoli and opened talks on military cooperation. Ukrainian forces later began providing training and technical support to GNU forces.

Russia has accused Ukraine of arming GNU forces and maintaining a presence in western Libya to target Russian interests in Africa. A series of unclaimed attacks on Russian-linked vessels off Libya in recent months were suspected to have been carried out by Ukrainian forces. Zelenskyy’s admission of responsibility for Sunday’s attack removed uncertainty over Ukraine’s role in that strike.

“Ukraine’s presence in northwestern Libya is a limited, discreet military cooperation arrangement with the Government of National Unity,” Trad said. “Its main function is to support long-range drone operations against Russian shipping and military logistics in the Mediterranean.”

Suspected Ukrainian attacks in the Mediterranean include drone strikes in September on the Russian cargo ship Lady Mariia, between Crete and Libya, and an attack in December that set the Russian LNG carrier Arctic Metagaz ablaze, leaving it adrift between Malta and Libya. It is not clear whether Sunday’s attack was launched from Libyan soil.

Forces loyal to the GNU and Haftar’s LNA have fought a gruelling war since 2014, with thousands killed. Repeated efforts to reconcile the eastern and western authorities have failed. Since 2025, regional and international initiatives have made cautious progress towards a framework to unify Libya’s political, military and economic institutions.

In April, Libya adopted a unified national budget for the first time in more than a decade. Ten countries involved in the conflict or efforts to resolve it welcomed the move in a joint statement: the United Arab Emirates, Egypt, France, Germany, Italy, Qatar, Saudi Arabia, Turkiye, the United Kingdom and the US. Russia also welcomed the budget in an April 22 statement, while warning against “external actors” shaping Libya’s future.

On August 30, the two sides agreed, in a UN-mediated deal, to hold presidential and legislative elections within 24 months under a single executive authority. Questions remain over their commitment to the process.

Sansom Milton, a senior research fellow at the Doha-based Center for Conflict and Humanitarian Studies, told Al Jazeera that the framework was the clearest opening for a political settlement between the rivals in years.

“The Haftar and Dbeibah camps have moved from bargaining over how to share Libya’s oil wealth to how they might share power,” Milton said. “I doubt Sunday’s strikes alone will derail talks.”

Libyan political and security analyst Osama Kubbar also said the attack, as an independent action by the Ukrainian government, was unlikely to disrupt the political process.

“If the boats did indeed depart from Tripoli, it was an independent action by Ukrainian personnel who are primarily present to train Libyan forces in the west of the country,” he said. “It will therefore not affect the reconciliation process between the two sides.”

Analysts told Al Jazeera that condemnation from both Libyan camps could undermine Ukraine’s efforts to establish a presence in the country. Harchaoui said Russia and the Haftar family would feel pressure to retaliate.

“Both the Russian state and the Haftar family will feel compelled to retaliate – somehow. I’m not saying it’s going to be easy, but the pressure is going to be there, because what happened was humiliating for both,” Harchaoui told Al Jazeera.

“So now that this actor, Ukraine, is not just performing covert action, but overt actions against components of the Russian state, then it opens up all sorts of possibilities.”

The strike could also affect Libya’s fragile peace process, in a country sensitive to the prospect of renewed conflict. “I’m not saying it’s likely, but the possibility now can be imagined,” Harchaoui said.

Both administrations say they do not want the Russia-Ukraine war brought to Libya. Mousa al-Koni, one of the three members of the Presidential Council that acts as head of state under a UN deal, called the attack “terrorist” and promised legal and diplomatic measures against those responsible, including referring the incident to the UN Security Council.

Ukraine is also likely to face pressure from both sides to limit its role in Libya. “Both sides have an interest in framing the strike as a violation of Libyan sovereignty,” Trad said. “What follows will likely be less a clean expulsion than a reduction in visibility and control.”