Libya’s Shifting Alliances: Why Turkey Is Embracing Haftar and Egypt Is Turning Toward Tripoli

Erdogan’s rapprochement with Khalifa Haftar and Egypt’s growing engagement with Tripoli are reshaping Libya’s regional alliances, with far-reaching implications for Russia, the UAE and the eastern Mediterranean.
By Moataz Khalil

Six years after Turkish military intervention helped prevent Khalifa Haftar’s forces from capturing Tripoli, Turkish President Recep Tayyip Erdogan welcomed the eastern Libyan military commander to the presidential complex in Ankara on November 25. The meeting, attended by senior Turkish diplomatic, military and intelligence officials, came days after Ukrainian strikes against Russian vessels in Benghazi and ahead of Erdogan’s planned first visit to Libya in 15 years.
An equally important shift is taking place on the other side of Libya’s political divide. Egypt, which for years supported Haftar and the eastern Libyan authorities, is strengthening its relationship with the Tripoli-based Government of National Unity led by Abdul Hamid Dbeibah.
The traditional division of Libya into a Turkish-backed west and an Egyptian-backed east is becoming increasingly blurred as regional powers seek to protect their interests on both sides. The consequences extend well beyond Libya, encompassing eastern Mediterranean energy competition, Russia’s military presence in North Africa and the regional balance of power.
The question is whether these changing alliances will help overcome Libya’s political fragmentation or simply allow external powers to consolidate their influence on both sides of it.
From Military Confrontation to Diplomatic Rapprochement
Turkey and Egypt backed opposing Libyan factions during the political instability and armed conflict that followed the collapse of Muammar Gaddafi’s regime in 2011. Turkey developed close political and military ties with the authorities in Tripoli, while Egypt and the United Arab Emirates supported Haftar and the eastern Libyan leadership. Russia subsequently became an important military partner of the eastern camp.
These divisions reflected competing security priorities and ideological differences, particularly over the role of Islamist political movements in North Africa. The confrontation peaked in 2019 and 2020, when Haftar launched an offensive against Tripoli. Turkish military intervention reversed his advances, preserving the internationally recognized Government of National Accord and establishing Ankara as a major power in western Libya. Egypt, meanwhile, viewed Haftar as an important partner in securing its western border and countering armed groups.
Erdogan’s reception of Haftar represents more than reconciliation between former adversaries. It exposes the ideological pragmatism underlying Turkish foreign policy. Haftar built much of his political and military identity around opposition to Islamist movements, while Ankara backed a political camp that included Islamist-aligned factions. Their rapprochement demonstrates how strategic and economic interests can override ideological differences.
This does not mean Ankara has abandoned its relationships with Islamist movements. As Turkey’s continued relationship with the Muslim Brotherhood demonstrates, Erdogan has retained instruments of political leverage even while pursuing reconciliation with Egypt.
On November 12, Erdogan met Dbeibah in Antalya to discuss economic, investment and military cooperation. Less than two weeks later, he welcomed the commander whose forces Turkey had helped defeat outside Tripoli. Rather than abandoning their traditional partners, both Ankara and Cairo are expanding their influence across Libya’s political divide.
Why Egypt Is Turning Toward Tripoli
For Cairo, Libya is not simply another arena of regional competition. The two countries share a border stretching more than 1,000 kilometers, making Libyan stability a matter of Egyptian national security. With conflict continuing in neighboring Sudan, preventing Libya from becoming another source of instability is increasingly important.
Speaking to Qatar-based Al Araby Television, former Egyptian Assistant Foreign Minister Fawzi al-Ashmawy identified border security, eastern Mediterranean energy interests and the preservation of Libya’s territorial and institutional unity as central considerations in Cairo’s approach.
Egypt also has substantial economic interests in Libya, particularly in reconstruction and infrastructure development. On November 19, Egyptian President Abdel Fattah el-Sisi received Dbeibah in Cairo, where the two governments signed nine agreements covering energy, investment and other areas of economic cooperation. Egypt also formally reopened its embassy in Tripoli earlier in November.
Although Cairo never entirely severed its relationship with western Libya, closer cooperation with Tripoli allows Egypt to pursue economic and political interests throughout the country while preserving its longstanding security partnership with Haftar. That cooperation, however, does not imply Egyptian acceptance of Turkey’s wider ambitions in the eastern Mediterranean.
Turkey’s Strategic Prize in the Eastern Mediterranean
The 2019 Turkish-Libyan maritime agreement is one of the principal factors behind Ankara’s rapprochement with Haftar. Signed between Turkey and Libya’s former Government of National Accord, the memorandum established a maritime boundary that strengthened Ankara’s claims in the eastern Mediterranean, drawing opposition from Greece, Cyprus, Egypt and the European Union.
For years, the agreement depended on Turkey’s relationship with the authorities in Tripoli and faced opposition from eastern Libya. On October 20, 2026, Libya’s House of Representatives ratified the maritime memorandum, reversing its longstanding opposition. The ratification law was subsequently published in Libya’s official gazette around the time of Haftar’s visit to Ankara.
For Turkey, this represents a major strategic gain. Securing support from both sides of Libya’s political divide makes the agreement less vulnerable to changes in the country’s leadership and opens opportunities for energy exploration and maritime cooperation.
International opposition, however, remains substantial. The European Union rejects the memorandum on the grounds that it infringes upon the maritime rights of third countries, while Greece argues that it disregards the rights of its islands, including Crete.
Egypt formally reiterated its rejection of the agreement in a November 5 diplomatic communication to the United Nations. Egyptian Foreign Minister Badr Abdelatty subsequently raised Cairo’s objections directly with Dbeibah during his visit to Tripoli.
Egypt maintains important energy relationships with Greece and Cyprus and plays a central role in the Eastern Mediterranean Gas Forum. Cairo and Ankara are finding greater room for cooperation in Libya, but their competing ambitions in the Mediterranean remain unresolved.
Haftar’s Ambitions and the Future of Eastern Libya
For Haftar, closer relations with Turkey offer greater international legitimacy and leverage in negotiations over Libya’s political and military future. Merve Seren, an international relations academic speaking to Al Araby Television, argued that Haftar’s engagement with Ankara also reflects uncertainty surrounding Russia’s future role in Libya.
The composition of Haftar’s delegation was particularly revealing. His three sons — Saddam, Khaled and Belqasim — participated in meetings with senior Turkish officials responsible for defense, foreign affairs, intelligence and energy. Saddam’s involvement reflects the military dimensions of the relationship, while Belqasim’s position as head of Libya’s Development and Reconstruction Fund highlights its economic potential.
Their presence also points to the question of succession in eastern Libya. Recent reports of an American-backed power-sharing proposal that would place Saddam Haftar at the head of Libya’s Presidency Council underscore his growing political importance, despite opposition from influential factions in western Libya. For Ankara, cultivating relationships with Haftar’s sons offers an opportunity to secure its interests beyond the military commander’s own tenure.
The rapprochement has already produced tangible results. On November 25, the eastern Libyan administration headed by Osama Hammad announced that Turkish citizens would be exempted from entry visas and residency fees. Saddam Haftar said Erdogan had agreed to reciprocal exemptions, although Turkey has not yet fully implemented such measures.
This opens opportunities for Turkish companies with longstanding experience in Libya’s construction and infrastructure sectors, particularly in housing, roads, ports and the reconstruction of damaged cities.
Energy is another important consideration. Turkish Energy and Natural Resources Minister Alparslan Bayraktar participated in discussions with the Libyan delegation, reflecting Ankara’s interest in a sector where Haftar and his allies exercise considerable influence. For eastern Libya, closer relations with Turkey offer additional investment partners, technical expertise and international legitimacy.
What Turkey’s Rapprochement Means for Russia and the UAE
Haftar’s visit comes at a sensitive moment for Russia’s position in Libya. On November 23, Ukrainian President Volodymyr Zelensky confirmed that Ukrainian forces had attacked two Russian vessels in and near Benghazi, announcing the sinking of the Russian naval corvette Merkury and a strike against the cargo vessel Angara, which Kyiv said Moscow had used to transport weapons.
The attacks brought the Russia-Ukraine war into Libya’s immediate security environment, exposing the vulnerability of Russian military interests in North Africa. Moscow’s relationship with Haftar has provided Russia with a strategic foothold in the Mediterranean and a logistical link to its military operations in the Sahel.
Turkey maintains diplomatic channels with both Moscow and Kyiv while pursuing its own military and maritime interests in the Black Sea and Mediterranean. Although there is no evidence that the Ukrainian attacks directly prompted Haftar’s visit to Ankara, they illustrate the risks of relying too heavily on a single external military partner.
Turkey’s growing presence in eastern Libya also carries implications for the United Arab Emirates, a longstanding supporter of Haftar. For Abu Dhabi, Ankara’s engagement introduces competition in reconstruction, investment and strategic sectors. For Moscow, it means that an established military partner is cultivating closer relations with another significant regional power.
Neither Russia nor the UAE is necessarily losing its influence in Libya. Rather, Haftar is expanding his international partnerships and reducing his dependence on individual allies. The implications will become clearer if Turkish engagement develops from diplomatic and economic cooperation into a substantial military relationship with eastern Libya.
Six years ago, regional powers were fighting for influence on opposing sides of Libya’s civil war. Today, they are finding ways to pursue their interests on both sides of the country’s political divide. That may reduce regional tensions, but it does not guarantee Libyan reunification. The danger for Libya is that its competing foreign partners increasingly find they can secure their interests without resolving the divisions that have kept the country fragmented.
Moataz Khalil is an Egyptian, London-based journalist and media researcher specializing in Iran and Middle East affairs. He is a senior contributor to Middle East 24 and MidEast Journal and has written for media platforms across the Middle East.