Algerians looked back on two decades of "missed opportunities" as flags flew at half mast Sunday ahead of the funeral of former president Abdelaziz Bouteflika.

His death at age 84 was announced late Friday, more than two years after the former strongman quit office.

The long-time leader had risen to power in 1999 on a wave of popular support as his amnesty offer to Islamist militants helped bring an end to a devastating decade-long civil war.

But 20 years later, mass protests broke out in response to his announcement that he intended to stand for a fifth term, and the army stepped in to force his resignation.

Bouteflika, a fighter in the war for independence from France, had suffered a mini-stroke in 2013 that affected his speech, and he was forced to use a wheelchair.

Dubbed "Boutef" by Algerians, he had won respect as a foreign minister in the 1970s to his mentor, Algeria's second president Houari Boumediene.

Supporters of Algeria's National Liberation Front (FLN) party gather on February 9, 2019 in the capital Algiers to call upon President Abdelaziz Bouteflika (shown in a poster) to run for a fifth term -- his decision to stand sparked mass protests
Supporters of Algeria's National Liberation Front (FLN) party gather on February 9, 2019 in the capital Algiers to call upon President Abdelaziz Bouteflika (shown in a poster) to run for a fifth term -- his decision to stand sparked mass protests AFP / RYAD KRAMDI

Algerian journalist Adlene Meddi said it was nostalgia for the heady Boumediene days of the late 60s and 70s that had given Bouteflika his initial honeymoon period as president.

"For some, he was a reassuring presence, reviving memories of the 'glorious' years under Boumediene, when Algeria was the leader of the developing world -- all in sharp contrast with the smouldering ruins of Algeria of the late 1990s," Meddi wrote on online news outlet Middle East Eye.

Hasni Abidi, head of the CERMAM studies centre in Geneva, said Bouteflika had also benefited from high oil prices of the era which had inflated government coffers.

"His popularity was guaranteed by a high (price of a) barrel and a 'civil concord' law negotiated by the army" that put an end to the war with the Islamists, he said.

The Algerian national flag flies at half mast in the capital Algiers on September 18, 2021, before the funeral of former president Abdelaziz Bouteflika
The Algerian national flag flies at half mast in the capital Algiers on September 18, 2021, before the funeral of former president Abdelaziz Bouteflika AFP / RYAD KRAMDI

"Unfortunately, Bouteflika missed his rendezvous with history -- he was the president of missed opportunities.

"He became a man of power and intrigue and not a statesman."

University of Algiers politics lecturer Louisa Dris Ait Hamadouche said the nation had suffered a "litany of missed opportunities" as Bouteflika "failed to achieve his own ambitions or those of the Algerian state".

He wanted "to surpass Boumediene, enshrine the presidency, bring all military institutions under its command, boost Algeria's influence on the regional stage, be the one to turn the page on the black decade (of civil war)," which killed around 200,000 people, Dris Ait Hamadouche said.

"But the outcome has been that in 2021, the institutions of the state have never been so weakened, so divided or so discredited."

Dris Ait Hamadouche said that for many younger Algerians, the only memory they would keep of their former president would be the "distressing image of an old man in a wheelchair".

More than half the country's population is younger than 30.

She said she regretted that death had spared him having to answer for "the mistakes committed during the exercise of his duties".

Bouteflika faced criticism from rights groups and opponents who accused him of being authoritarian.

Samir Yahiaoui, a Hirak reform movement activist in the Algerian diaspora in France, said he too regretted that Bouteflika had "taken so many secrets with him".

"It's just unacceptable," he said. "It shows that he served a clan, a regime, and was never a statesman."