General Khalifa Haftar, the de facto leader of eastern Libya, came to visit Ankara at the invitation of Turkish President Recep Tayyip Erdogan. For years, Turkey has maintained relations with the government in western Libya, but Erdogan has recently seen a rapprochement with both the Haftar and the eastern forces, amid the signing of a gas supply agreement with the eastern government.