Audio By Carbonatix
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
-
Sophia Akuffo’s council of state appointment was constitutionally flawed from the start — Ansa-Asare
22 minutes -
Ofori-Atta’s US green card is “a victory” but no shield against extradition – Kofi Bentil
44 minutes -
Wa West MP pushes for revival of stalled Dorimon E-Block, tackles urgent kindergarten furniture shortage
46 minutes -
OSP’s procedural failure on Ofori-Atta gave US immigration court the opening it needed – Ansa-Asare
49 minutes -
I advised Ofori-Atta to return home and face charges – Ansa-Asare
1 hour -
Ofori-Atta saga was not fair, infringed on his dignity – Ansa-Asare
1 hour -
Ken Ofori-Atta would be in danger of assault if he returns to Ghana – Kofi Bentil
2 hours -
If Ofori-Atta has nothing to fear or hide, he should return and face charges – Clement Apaak
2 hours -
Ofori-Atta’s reported Green Card status signals US does not fully agree with Process – Kofi Bentil
2 hours -
High Court issues interim injunction over Afigya Sekyere East NPP polling station album
2 hours -
Interdiction is ridiculous — Ofori-Boadu demands stronger punishment for teachers who sexually abuse students
2 hours -
We expect sanctions for both teacher and student in Bole SHS misconduct case – Clement Apaak
3 hours -
Teacher, student both culpable under GES code in Bole SHS misconduct case – Clement Apaak
3 hours -
Even if it’s just two or three schools, we ought to be worried — Deputy Education Minister on Ghana’s student misconduct crisis
3 hours -
Bole SHS teacher violated professional code by engaging student sexually – Deputy Education Minister
3 hours