If Afghanistan is the proverbial “graveyard of empires,” Libya is becoming a crucible for would-be regional powers. The intractable civil war that has carved apart the oil-rich North African country is in reality a multisided chess match between a variety of outside actors, from Turkey to the United Arab Emirates, France and Egypt. On the ground, the battle involves thousands of Syrian militiamen, Sudanese mercenaries and Russian contractors. In the air, countries are deploying a growing number of drones, fighter jets and missiles. Earlier this month, U.N. Secretary General António Guterres warned that “foreign interference” was “reaching unprecedented levels.”

The biggest victor this summer seems to have been Turkey, which came to the rescue of the U.N.-recognized government based in Tripoli and pushed back the months-long offensive waged by the forces of renegade Gen. Khalifa Hifter. Now, the Turkish-backed Government of National Accord, or GNA, is firmly in command of Libya’s west and may hope to wrest control of the country’s strategic “oil crescent,” an arc of coastal towns and oil facilities in the interior in between Tripoli, the capital, and the eastern city of Benghazi.

There’s an element of a personal and ideological clash. Turkish President Recep Tayyip Erdogan has railed against Sissi ever since the latter came to power in a 2013 coup that brought down Egypt’s short-lived, democratically elected Islamist government. “They are each other’s nemeses,” Soner Cagaptay, a Turkey scholar at the Washington Institute for Near East Policy, told Today’s WorldView. “A secularist general who locked up political Islamists, and a political Islamist who locked up secularist generals.”