Algeria's President Abdelaziz Bouteflika is resigning after weeks of mass protests, state media report.
Mr Bouteflika, who had 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.
How was his resignation announced?
A statement was carried on state news agency APS.
"The president of the republic, Abdelaziz Bouteflika, has officially notified the president of the constitutional council of his decision to end his mandate as president of the republic," it said.
Image caption: President Abdelaziz Bouteflika has led Algeria since 1999
State TV then reported that this would be with immediate effect.
How did it come about?
Pressure had been building since February when the first demonstrations were sparked by Mr Bouteflika's announcement that he would be standing for a fifth term.
Tens of thousands protested across the country on 1 March. Mr Bouteflika's promise not to serve out a fifth term if re-elected, along with a change of prime minister, failed to quell the discontent.
Leaders of the protests also rejected Mr Bouteflika's offer this week that he would go by the end of his current term - 28 April - as not quick enough.
It seems the powerful military agreed. Its chief, Lt Gen Ahmed Gaed Salah, said earlier on Tuesday: "There is no more room to waste time."
Why have the protests grown?
The demonstrations have also called for the whole political system, in which the military plays a significant role, to be overhauled.
Many of the protesters are young and say they want a new system of government.
There were accusations that Mr Bouteflika was being used as a front by "le pouvoir" - a group of businessmen, politicians and military officials - to retain their power.
Elections originally scheduled for 18 April were postponed and the governing National Liberation Front (FLN) vowed to organise a national conference on reforms.
The FLN has ruled Algeria since the country won independence from France in 1962 after seven years of conflict.
Mr Bouteflika, who came to power in 1999, strengthened his grip after a bloody civil war against Islamist insurgents which left 150,000 dead.
The chairman of the upper house of parliament, Abdelkader Bensalah, is expected to become caretaker president for three months until elections.
What has the reaction been?
Car horns could be heard in the streets of the capital, Algiers, as hundreds of people waving flags celebrated.
One protest leader, Mustapha Bouchachi, told Reuters before the announcement that any decision by Mr Bouteflika to quit would still change nothing and that the protests would continue.
Latest Stories
-
CCTV nabs driver who stole mobile phones from journalist and others
37 minutes -
Western region NDC congratulates Joseph Nelson and Emelia Arthur on ministerial nominations
50 minutes -
ECG requires ₵600 million monthly to operate efficiently – Former MD
53 minutes -
Bulk oil importers assure of enough fuel to meet local demand; rules out any shortage
1 hour -
MMDCE positions: 287 submit names in Volta region, vetting starts on January 21
1 hour -
Former chief of Akrafo Kokobeng shot dead by unknown assailant
1 hour -
Under-declaration isn’t a criminal offence – Former ECG MD responds to audit report
1 hour -
ACEP calls for a change petroleum margins into tax revenues
2 hours -
Mahama appoints Mohammed Abdul-Salam as Ag. CEO of NLA
2 hours -
Let’s rewrite the history of Ghana’s youth together – Opare Addo on ministerial nomination
2 hours -
Cocoa smuggling: Cocobod intercepts 1,473 maxi bags, calls for stiffer punishment
2 hours -
Two in police grip for suspected ritual murder in Akatsi North District
2 hours -
Outlook of Sub-Saharan African countries to be neutral in 2025 – Fitch
2 hours -
GH₵490m unaccounted for by ECG in three months – Audit report
2 hours -
ICS students use theatre to amplify call against illegal mining in Ghana
3 hours