UN peacekeepers are finishing their withdrawal from Mali on Sunday, after a long-running mission lasting a decade.
Minusma - the Multidimensional Integrated Stabilization Mission - began in 2013 after an armed rebellion, but has been asked to leave by the country's ruling military government.
The UN mission's head said it did a lot but fell below expectations.
With some 310 peacekeepers killed, Minusma was the UN's second deadliest mission worldwide, after Lebanon.
In the summer, Mali told the UN that its 12,000 peacemakers needed to leave, and the UN Security Council voted to withdraw the mission
UN staff have been leaving in stages for months, with a deadline of 31 December for full withdrawal.
On Friday, local media reported that Minusma had handed over control of one of its last major camps in the northern Timbuktu region ahead of the deadline, for security reasons.
Timbuktu was one of three sites which were supposed to remain open to manage the end of the mission after 31 December, but the UN was worried about the presence of militants, reports said.
El-Ghassim Wane, head of the UN mission, said in a recorded statement that there was a "gap between what we were mandated to do and we were able to do".
"We did a lot but definitely it was below expectations and below the needs," he added.
Security in Mali is fragile, with armed Islamist and independence movements active.
Mali's government is also building closer ties to Russia - including by relying on the Wagner mercenary group - just as Western influence declines.
The mission began 10 years ago, after separatist rebels and Islamist fighters banded together and occupied northern Mali in an effort to create a separate state.
France sent troops to try and put down the uprising, followed by UN peacekeepers.
The threat from Islamist militants, who have killed several thousand people and forced tens of thousands from their homes, continued over the years.
And despite the presence of UN peacekeepers and French troops, who led counter-terror operations, the number of terror attacks in Mali steadily increased, as did the number of Malians joining insurgent groups. France announced it was withdrawing troops last year.
Mali has been run by military leaders following two coups in 2020 and 2021.
The country has been struggling with a widespread jihadist insurgency that has made much of the north and east ungovernable.
In recent years, Islamic State in the Greater Sahara had made major gains, occupying large swathes of territory in southeast Mali.
Many central regions have also recently been experiencing a surge in violence perpetrated by militants linked to al-Qaeda and Islamic State groups.
Fighting also broke out again in August between the separatists and government troops after eight years of calm, as both sides scrambled to fill the vacuum left by the withdrawal of the UN peacekeepers.
BBC