Algerian President Abdelmadjid Tebboune stressed his country's hope that Libya will hold elections, which would be a "significant step" in resolving its political crisis.
The president received on Thursday Libyan Foreign Minister Najla al-Mangoush.
He urged the need for all foreign militias to withdraw from Libya and for an end to foreign meddling in its internal affairs.
He expressed Algeria's keenness on Libya holding elections before the end of the year, said informed sources.
Presidential and parliamentary elections were set to be held in December 2021, but they were postponed over political disagreements.
Tebboune stressed the need to resolve political disputes between various Libyan parties so that stability can be restored in their country and the region.
Talks with Magnoush also tackled border security, illegal migration, arms smuggling and views on the Ukraine war.
For her part, Magnoush said her one-day visit sought to garner support to Libya's Government of National Unity ahead of holding transparent elections.
Talks also focused on stability in Libya that will ensure stability in the Arab and Maghreb regions, she added.
According to the Libyan Foreign Ministry, Tebboune expressed Algeria's "unconditional support" to the GNU and its strenuous efforts to hold the presidential and parliamentary elections as soon as possible.
Magnoush also met with her Algerian counterpart, Ramtane Lamamra, during her visit.