Turkey's parliament passed a bill on Thursday approving a military deployment to Libya aimed at shoring up the UN-backed government in Tripoli, at a time of intensifying international tensions over the conflict.
The beleaguered Tripoli government has been under sustained attack since April by military strongman General Khalifa Haftar, who is backed by Turkey's regional rivals -- Saudi Arabia, Egypt and the United Arab Emirates.
Egypt strongly condemned the Turkish vote, saying it amounted to a "flagrant violation of international law and Security Council resolutions on Libya".
President Recep Tayyip Erdogan spoke with his US counterpart Donald Trump by phone on Thursday to discuss the situation in Libya, his office said.
He is due to receive Russian President Vladimir Putin next Wednesday to inaugurate a new gas pipeline, and Libya is expected to be a key topic of discussion.
Erdogan has repeatedly accused Russia of sending private mercenaries to support Haftar's forces, though this has been denied by Moscow.
However, Turkey and Russia have managed to work closely on the Syrian conflict despite supporting opposing sides, and are expected to seek a similar balancing act with regards to Libya.
Erdogan's office confirmed last Friday that a request for military support had been received from the Tripoli-based Government of National Accord (GNA).
No details have been given on the scale of the potential deployment, and Vice-President Fuat Oktay told state news agency Anadolu on Wednesday that no date had yet been set.
"We are ready. Our armed forces and our defence ministry are ready," he said, adding that parliamentary approval would be valid for a year.
He described the parliament motion as a "political signal" aimed at deterring Haftar's army.
"After it passes, if the other side changes its attitude and says, 'OK, we are withdrawing, we are abandoning our offensive,' then what should we go there for?"
The bill passed easily through Turkey's parliament, by 325 votes to 184.
"The Libyan motion is important for the protection of the interests of our country and for the peace and stability of the region," Foreign Minister Mevlut Cavusoglu tweeted after the vote.
"We're supporting the internationally recognised legitimate government in Libya. Outside powers must stop supporting illegitimate groups against the Libyan government," Erdogan's communications director Fahrettin Altun tweeted last week.