Turkey will not allow any uncertainty in Libya, said Vice President Fuat Oktay on Friday, and voiced full support for Libya's legitimate government.

Speaking at a virtual meeting of Atlantic Council and Turkish Heritage Organization, Oktay stressed that illegal forces loyal to renegade commander Khalifa Haftar should recognise Prime Minister Fayez al-Sarraj's government.

"Any uncertainty within the region costs Turkey and Turkish people," Oktay said, citing the Syrian civil war, which he said pushed nearly four million refugees into Turkey.

Ankara wants nothing but a stable neighbor since the beginning of war in 2011, he said and added Turkey desires the same for Libya.

"Turkey is standing behind the legitimacy," he added.

"We have no other way to help," said Oktay after Libya's government asked for support, while some countries, including the United Arab Emirates, Egypt and France, back Haftar forces.

The vice president said Turkey and Libya also share common interests in the Eastern Mediterranean region, so Ankara will "make sure the legitimate government cannot be threatened by any dictator or any terrorist like Haftar."

"We will be there no matter what the outcomes. So we are decisive on that," he said. "President [Recep Tayyip] Erdogan made it very open to the rest of the world and we hope that EU, US and others including Russia will understand that."

Libya’s internationally recognized government, also known as the Government of National Accord, has been under attack by Haftar's forces since April 2019, with more than 1,000 killed in the violence.

In March, the Libyan government launched Operation Peace Storm to counter attacks on the capital, and recently regained strategic locations, including the Al-Watiya airbase, in a major blow to Haftar's forces.

Libya has been torn by civil war since the ouster of late ruler Muammar Gaddafi in 2011. Libya's new government was founded in 2015 under a UN-led agreement, but efforts for a long-term political settlement failed due to the military offensive by Haftar’s forces.