Algeria's President Abdelaziz Bouteflika will resign before his fourth term expires on April 28, his office has said in a statement carried by the official APS news agency.
The president will take "steps to ensure state institutions continue to function during the transition period", said the statement issued on Monday, adding, his "resignation would occur before April 28, 2019".
Millions of Algerians have been holding weekly protests nationwide calling for the 82-year-old to step down after almost 20 years in office. He has rarely been seen in public since he suffered a stroke in 2013.
He had initially declared his candidacy for a fifth term, but on March 11 withdrew and postponed the election – originally slated for April 18 – in response to the massive protests.
The move comes after Algeria's powerful army chief proposed launching a constitutional procedure to have Bouteflika declared unfit for office. That proposal prompted tensions between the army and the president's inner circle.
The Constitutional Council had been meeting to consider whether he can be removed from office because he is unfit to assume his duties.
Under article 102 of the constitution, the council can make such a determination and, pending parliamentary approval, proceed to declare the presidency vacant.
|Algeria protests: Army chief backs call for president's exit|
The Algerian constitution calls for the head of the upper house of parliament to act act as interim leader for a maximum of 90 days while an election is organised.
Algerian national television announced on Sunday night that Bouteflika and Prime Minister Noureddine Bedoui had named a new government after weeks of mass protests and political tensions in this gas-rich North African country.
The new government must stay in place during the transition period.
Protests likely to continue
Al Jazeera's Imran Khan, reporting from Tunis, said that although Bouteflika's resignation was one of the demonstrators' demands, the protest movement will continue as Algerians view the entire establishment as being part of the problem.
"[The problem includes] people who are seen as being close to him. That includes opposition in government and the army as well," Khan said.
|Algeria's Bouteflika names new government amid ongoing protests|
"The government will be hoping that this might have some sort of an impact, [but] everything suggests that it won't have any impact on Algeria's protests."
The protests have been driven mostly by young Algerians, who make up a growing part of the population.
Demonstrators say Bouteflika and his generation are out of touch with the problems of the people.
Many Algerian youth struggle to find jobs, and desperation has driven some to attempt to migrate to Europe on rickety boats.
During Bouteflika's 20 years in office, age and illness took its toll on the once-charismatic figure. Corruption scandals related to infrastructure and hydrocarbon projects have also dogged him for years and tarnished many of his closest associates.
Algeria is Africa's biggest country by land mass and a major natural gas producer, but its energy riches have not trickled down to reach the pockets of its people.
Bouteflika protests: Algeria's shifting media space
SOURCE: News agencies