The United Nations Security Council has voted to end international military operations in Libya next Monday. In March the council voted to authorize "all necessary measures" to protect civilians, after then-leader Muammar Gaddafi launched a deadly assault on protesters against his rule.
Last week NATO and its partners, which had been conducting air strikes, said the campaign would end on 31 October.
Libya's new government declared the country liberated on Sunday.
On Thursday the council unanimously approved a resolution ending the mandate for foreign military action at 23:59 Libyan time on 31 October.
UK Foreign Minister William Hague said the vote was a "milestone towards a peaceful, democratic future for Libya".
The resolution came despite a call by Libya's National Transitional Council (NTC) for Nato to continue its military action. The Libyan envoy to the UN had said the NTC needed more time to assess its security needs.
BBC News - UN Security Council votes to end Libya operations