Algeria’s President Abdelaziz Bouteflika has resigned after weeks of massive streets protests. Mr Bouteflika, who has been in power for 20 years, had already dropped plans to seek a fifth term as opposition to his rule grew.

The powerful Algerian army had called for the 82-year-old to be declared incapable of carrying out his duties. The ailing leader suffered a stroke six years ago and has rarely appeared in public since then.

He made a rare appearance on state TV to relinquish power hours after military chief Lt Gen Ahmed Gaed Salah had called on him to leave office immediately.

Car horns could be heard in the streets of the capital, Algiers, as hundreds celebrated the announcement. People waved Algeria’s national flags and sang happily.

Bouteflika’s resignation will put Abdelkader Bensalah, chairman of the upper house of parliament, in charge as caretaker president for 90 days until elections are held.