UN Libya envoy Martin Kobler on Sunday called for national reconciliation and a unified security service after pro-government forces retook the former Daesh terror group bastion of Sirte.

“I call on Libyans to seize this opportunity to promote national reconciliation,” he said, a day after the UN-backed unity government announced the end of the battle for the coastal city, AFP reported.

Kobler called for "the integration and rehabilitation of fighters" and the collection of weapons "to give way to a professional security apparatus with a unified command".

He stressed the need for mine clearing to ensure the safe return of displaced people after pro-government fighters expelled Daesh from the city.

Speaking from the Tunisian capital, the UN envoy called the recapture of Sirte "a major step forward in liberating Libya from terrorism", but warned "Libyans should remain vigilant".

The fall of Sirte – 450 kilometers (280 miles) east of Tripoli – is a major setback for Daesh, which has also faced a series of military defeats in Syria and Iraq.

Daesh seized Sirte in June 2015 in the chaos that followed the 2011 uprising that toppled and killed longtime dictator Muammar Gaddafi.

A rival authority based in the country's far east has refused to cede power, while its own armed forces led by Marshal Khalifa Haftar have been battling terrorists in the second city, Benghazi.

Haftar was in Algiers on Sunday, Algerian state media said, where the rival army chief met top officials to discuss "re-establishing stability and security" in Libya.