Zimbabwe's President Robert Mugabe has resigned, parliament speaker Jacob Mudenda has said.
A letter from Mr Mugabe said that the decision was voluntary and that he had made it to allow a smooth transition of power.
The surprise announcement halted an impeachment hearing that had begun against him.
Lawmakers roared in jubilation and people have begun celebrating in the streets.
Follow the latest developments here
Mr Mugabe had previously refused to resign despite last week's military takeover and days of protests.
The letter did not mention who would take over from Mr Mugabe.
The constitution says it should be the current vice-president, Phelekezela Mphoko, a supporter of Grace Mugabe, Mr Mugabe's wife.
Mr Mudenda said moves were under way to ensure a new leader could take over by late on Wednesday.
UK Prime Minister Theresa May said Mr Mugabe's resignation "provides Zimbabwe with an opportunity to forge a new path free of the oppression that characterised his rule".
She said that Britain, "as Zimbabwe's oldest friend", will do all it can to support free and fair elections and the rebuilding of the Zimbabwean economy.
Robert Mugabe has been in power since independence in 1980. Mr Mugabe has won elections, but over the past 15 years these have been marred by violence against political opponents.
He has presided over a deepening economic crisis in Zimbabwe, where people are on average 15% poorer now than they were in 1980.
"I am the happiest person under the sun right now, because I always believed that Mugabe was going to step down in my lifetime and it has happened," human rights activist Linda Masarira told the BBC.
"And now going forward it's time for the opposition to reorganise and ensure that we will have a government that cares for the people. And everyone has to be included."
What triggered the moves to oust him was his dismissal of Emmerson Mnangagwa as vice-president two weeks ago.
That decision was seen by many as clearing the way for Grace Mugabe to succeed her husband as leader. It riled the military leadership, who stepped in and put Mr Mugabe under house arrest.
Latest Stories
-
2024 Election: Voter apathy caused NPP’s defeat – Justin Kodua
15 minutes -
Ghanaian teacher shortlisted for GEM’s $1m global prize
18 minutes -
Young entrepreneurs encouraged to capitalise on 5-year tax exemption Incentives
27 minutes -
Lord Morrgan fulfils promise; gifts fan Wale new motorbike
1 hour -
CHAN 2024 Draw: Two-time Champions Morocco in Group A with hosts Kenya
1 hour -
Disregarding ORAL’s mandate doesn’t help the nation – Kpebu
1 hour -
NDC gov’t cannot fulfil its promises under the current IMF programme – Godfred Bokpin
1 hour -
13 newly recruited staff posted to Creative Arts Agency
1 hour -
NPP: You can’t blame me or the chairman for election defeat – Justin Kodua
2 hours -
ORAL team is illegal, Mahama was president-elect when he set up committee – Minority
2 hours -
27-year-old seeks to represent Ashanti Region on the Council of State
2 hours -
There is a new leader in town, but yet to be tested practically on the job – Nana Amoasi VII on Energy Minister-designate
2 hours -
Fire Service to restore fire tenders and establish permanent coverage at major markets- Alex King Nartey
2 hours -
“Even in death, you’re still touching lives” – Mother’s tribute to 10-year-old Lisa Laryea who died of Leukemia
2 hours -
Volta regional minister designate, James Gunu: A timely reset for development and progress
2 hours