Libyan-Turkish relations is the relationship between Libya and Turkey. Libya functions an embassy in Ankara and Turkey has its counterpart in Tripoli.
History
The Ottoman Empire conquered the coastal areas of Libya during the mid-16th century and had made a great impact on the society of Libya. By then known as Tripolitania under the Ottomans, the province enjoyed a degree of autonomy, though unstable and varied. In the 18th century, Ahmed Karamanli founded the semi-independence Karamanli dynasty, which ruled Libya and still acknowledged Ottoman control. Under his reign, Libya was one of the most prosperous parts of the empire with strong Libyan, but due to his defiance to the Turks, it drew hostility indirectly from the Ottomans. His successors, however, were not as successful as Ahmed, and the dynasty would immediately collapse in late 18th century, and the Barbary Wars launched by the United States only ensured the complete collapse of Karamanli authority. By then, until the Italian conquest, Ottoman rule in Libya was secured, but it was neglected from the mainland due to its lack of development. After the Italo-Turkish War, Turkey and Libya lost formal connection as the Kingdom of Italy conquered Libya. It was not until 1947 when the two nations rebuild their links.
With the Kingdom of Libya established, Turkey and Libya maintained cordial relations, with both are commonly Muslim majority nations. In 1969, a bloodless coup occurred in Libya while King Idris was in Ankara, Turkey for medical treatment. Subsequently, King Idris condemned the coup, but lacked authority to be against it. Eventually, the Libyan King had to live in exile until 1983 when he died in Cairo. Since the fall of Senussi dynasty, Turco-Libyan relations were driven between cooperations and hostilities. Despite Muammar Gaddafi provided Turkey with spare parts to its US-made aircraft during the Turkish invasion of Cyprus, as a U.S. arms embargo was imposed on Turkey, and preferred buying Turkish stuffs, he had also created controversies, accusing Turkey for the Kurdish question, and provoked Turkey by supporting Kurdish independence. This was reconfirmed in 2011 by Jawad Mella, the President of Kurdish National Congress in exile. Thus, tie between Turkey and Libya was severely damaged until 2011.
Libyan conflict
Turkey opposed and accused "Sarkozy of pursuing French interests over liberation of Libyan people" and on March 20 it took an observant position. Turkey in 2011 was among the first to immediately cut ties with Libya, demanding Gaddafi quit the Government and Turkey would offer him exile. Gaddafi refused to do so and Turkey threw its support behind anti-Gaddafi forces, notably the National Transitional Council in July 2011. With the outbreak of the second Libyan Civil War, Turkey remains supportive of the UN-recognized Government of National Accord in Tripoli, against Haftar-based House of Representatives in Tobruk. Haftar's vehement anti-Turkish stance had contributed to ongoing hostility between Turkey and Tobruk Government, as well as Turkey has transported weapons and ammunitions to the government in Tripoli. Turkey's Vice President, Fuat Oktay, accused indirectly Haftar as the trouble-maker who wanted to prevent peace for Libya and had left the conference for peace in Libya in November 2018. Haftar had remained as belligerent against Turkey, led by Recep Tayyip Erdoğan, and Tobruk-based forces often seized Turkish ships transporting arms to the army in Tripoli. Following the 2019–20 Western Libya campaign led by Haftar, Turkey had shown deep concerns and secretly condemned Haftar for destabilizing Libya. In November 2019, Turkey stated that it signed an agreement with Libya's internationally recognized government on maritime boundaries in the Mediterranean Sea, in addition to a deal on security and military cooperation. In 2019, the United Nations reported that Jordan, Turkey and the United Arab Emirates have systematically violated the Libyan arms embargo. Adding that “routinely and sometimes blatantly supplied weapons with little effort to disguise the source”. Also, the Libyan National Army accused the Turkish authorities of supporting terrorist groups in Libya for many years, added that the Turkish support has evolved from just logistic support to a direct interference using military aircraft to transport mercenaries, as well as ships carrying weapons, armored vehicles and ammunition to support terrorism in Libya. However, these accusations were made after pro-Haftar forces lost control over the strategic town of Gharyan after anti-Haftar forces, who back Libya's internationally recognized government, managed to push back pro-Haftar forces. In retaliation for his defeat, Haftar, who is backed by the United Arab Emirates and Egypt, responded by threatening Turkey and vowed to target all Turkish ships and companies, ban flights to and from Turkey, and arrest Turkish nationals in Libya. Other false accusations by Haftar after his loss of Gharyan were refuted by both the GNA and authorities in Gharyan. On 2 January 2020, Turkey's parliament approved a bill to deploy troops into Libya to back the UN-recognised government in the capital, after forces loyal to Haftar, a rival administration, launched an offensive. The legislation passed with a 325-184 vote, however the details of the deployment have yet to be revealed in terms of amount and timing. On 6 January, Turkish troops began moving into Libya. On 8 January 2020, after talks between presidents Tayyip Erdogan and Russia's Vladimir Putin in Istanbul, Turkey and Russia urged all parties in Libya to declare a ceasefire at midnight on 12 January.