When he steps down next week President Muhammadu Buhari will be leaving Nigerians less secure, poorer and more in debt than when he came to office in 2015.
The former military ruler became president after winning a momentous election which saw the defeat of underperforming incumbent Goodluck Jonathan.
Riding a wave of optimism that change was possible, he was supported by a powerful coalition and had the reputation of being a hard-man soldier, who would get things done.
After Mr Buhari's brief stint in charge in the 1980s, his second coming was on the back of promises to curtail the rampaging Islamist insurgency in the north-east and tackle widespread corruption.
He is the last of a generation of British-trained military men who went on to govern the country, But the 80-year-old's two four-year terms have left many disappointed.
Currently, one in three Nigerians who want to work are unable to find a job. Before Mr Buhari took over that figure was less than one in 10.
The government has blamed a drastic drop in oil prices in its early days, the Covid pandemic and Russia's war in Ukraine.
But some of its policies, such as currency restrictions and closing the land borders to boost local production, have contributed towards record inflation that has made millions poorer and depleted a once burgeoning Nigerian middle-class.
Last week, with the end in sight, Mr Buhari pleaded with lawmakers to hurriedly approve an $800m (£640m) loan from the World Bank. Nigeria's public debt could pass $150bn this year - when he took over it stood at a little over $60bn.
His borrowing spree has drawn warnings from the World Bank that Africa's largest economy was using 96% of its revenue to service debts.
But the huge debt has been defended by the administration who say it is within acceptable limits, pointing to cash payments to poor people as justification for some of the loans.
There have been gains in tackling Boko Haram and other extremist [/b]groups in the north-east, aided by improved military hardware from the US.
While the groups still carry out attacks on communities and military installations in the region, it is a big improvement from the years when they operated freely and controlled a large portion of Nigerian territory.
Mr Buhari also utilised Chinese loans to upgrade the ailing road and rail infrastructure, building a new port in Lagos, completing a crucial bridge in the south-east, and passing important electoral and oil-sector laws.
But whatever gains have been recorded in the north-east against the Islamist militants have been eroded by the emergence of equally violent groups in other parts of the country under his watch.
Clashes between farmers and cattle herders from the Fulani ethnic group, which had simmered for years, were allowed to boil over into deadly armed confrontations with an ethnic element, as the government ran out of ideas to solve the problem of where animals could graze.
Mr Buhari, a Fulani from northern Nigeria, was accused of bias in the conflict and his proposal of grazing reserves for the herders were rebuffed by powerful southern state governors who saw it as a land-grabbing tactic.
Some of the armed groups created by the farmer-herder crisis have since transitioned into violent motorcycle-riding bandits targeting communities in the north-west and central states. These groups have helped turn a lucrative kidnap-for-ransom business into a behemoth that now extends countrywide.
It took hold during the first decade of the century when oil workers were kidnapped in the Niger Delta and blossomed under Mr Buhari's watch as the targets changed.
For instance, thousands of school children were abducted between December 2020 and September 2021, according to the UN's children's organisation, Unicef. That eclipsed the 270 girls seized from a school in Chibok who made global headlines in 2014 - a crime that was a crucial factor in Mr Buhari defeating Mr Jonathan.
"How can you fail in your own area of specialty?" he asked.
The countrywide insecurity under Mr Buhari has largely been muted in the oil-rich Niger Delta where oil-militants and sea pirates held sway in the past.
But that peace seems to have coincided with a period of large-scale oil theft, with the government accused of looking away while different groups in the region steal crude from the pipelines. This led to Nigeria's production plunging to a 30-year low in 2022.
The shocking discovery last October of a kilometres-long pipeline used to steal oil was described by commentators as "nearly impossible" without help from authorities.
In one location, thieves built their own 4km-long pipeline through the heavily guarded creeks to the Atlantic Ocean. There, barges and vessels blatantly loaded the stolen oil from a seven-metre rig visible for miles on the open waters.
That theft on such a scale happened directly under Mr Buhari, who also doubled as Nigeria's petroleum minister, undermined his claim to be fighting graft, Salaudeen Hashim of anti-corruption NGO Cleen Foundation, told the BBC.
As he leaves, Mr Buhari's handling of the Nigerian economy will most likely be remembered for his botched attempt earlier this year at redesigning the local currency.
An otherwise rudimentary exercise descended into chaos as scarcity of the new naira notes, which have now almost disappeared, resulted in untold hardship for millions in the country who relied on cash for basic needs.
"The small business we were doing was destroyed by that man," said a university graduate in Abuja who made money by supplying banknotes to her customers before the cash crisis.
Her anger was fuelled by a common problem in Nigeria - a lack of work among educated young people.
According to data obtained from the Nigeria Security Tracker, NST, a project of the Council on Foreign Relations’ Africa programme, the deaths arose from terrorism, banditry, Herders/farmers clashes, communal crises, cult clashes, and extra-judicial killings among others. It was reported that 63,111 persons killed in Buhari's eight years.
Comments