Qatar is formalising its alliance with Turkey through an escalating direct intervention in Libya in which it has sent military advisers to the Tripoli-based Government of National Accord. A three-way military agreement between the GNA, Turkey and Qatar agreed to this week is expected to strengthen the militias that Tripoli has employed to defend it. Turkey has been providing the GNA with weapons, troops, experts and Syrian mercenaries it has trained, in a move broadly condemned by the international community. Its interference in the country’s civil war led the EU to launch Operation Irini, a maritime mission that has been patrolling the Mediterranean to stop shiploads of weapons reaching Libya’s shores. The Egyptian government warned on Wednesday that the deal between Doha, Ankara and Tripoli includes a Turkish naval base at the port in Misurata, a town run by militias supplied by Turkey. The deal was announced on Monday as Hulusi Akar, the Turkish Defence Minister, and his Qatari equivalent Khalid Al Attiyah spoke in Tripoli. Experts believe that with a weakened economy, <a href="https://www.thenational.ae/world/turkey-s-tanking-economy-sends-erdogan-on-a-trip-to-qatar-1.943083">Ankara is relying on Qatari funds to "expand its footprint" in Tripoli</a>. “After reaching military stalemate in Libya, the Turks are trying to do capacity building and because they are struggling economically, the Qataris are stepping in saying they want to contribute,” one defence expert said. The link between Ankara’s poor financial position and Doha’s money was also emphasised by Fadi Hakura, the Turkey specialist for international think tank Chatham House. “Turkey is trying to solidify its relationship with Qatar as the Turkish lira is very weak and Qatar has provided $15 billion (Dh55.1bn) in liquidity for it,” Mr Hakura said. "There's also a direct connection between sputtering Turkish economy and <a href="https://www.thenational.ae/world/europe/greece-calls-for-eu-sanctions-on-turkey-over-mediterranean-aggression-1.1065373">President [Recep Tayyip] Erdogan's greater adventurism in the Eastern Mediterranean</a>." He said Mr Erdogan wanted to project himself “as an indispensable power in the region” and was keen to resurrect the promise that Libya once held for Turkish trade. A decade ago, Mr Erdogan signed $16bn in construction contracts with <a href="https://www.thenational.ae/world/mena/overview-the-ousting-of-muammar-qaddafi-and-the-chaos-that-ensued-1.735020">former Libyan dictator Muammar Qaddafi</a>. Another Libya analyst said that the military agreement showed the Turks were determined to remain a presence in the region. “The bottom line is that Turkey is trying to consolidate what it has achieved over the last few months, which is a pretty solid presence on the southern side of the Mediterranean,” said Tobias Borck of the Royal United Services Institute. “But this is consolidation rather than expansion.” Mr Borck said Turkey and Qatar had been “very close” over the past decade.