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
-
Duvor Klu, Hua crowned champions as J30 Accra Week 1 concludes
9 minutes -
Gov’t to make rural telephony services cheaper by first quarter of 2027 – Sam George
33 minutes -
National Chief Imam remains Ghana’s strongest symbol of interfaith harmony – Mahama Ayariga
49 minutes -
Gov’t to upgrade all rural telephony networks to 4G capability – Sam George
1 hour -
‘We’ve never seen a CJ in our judiciary system who is everywhere like MTN’ – Janet Nabla
1 hour -
Lawyers, prosecutors fume over abandoned 26-year-old Upper West High court project
1 hour -
At least two dead in blast at Bolivia military barracks
2 hours -
Tate brothers officially indicted with trafficking and sex crimes in Romania
2 hours -
US envoys arrive in Moscow ahead of Ukraine talks
2 hours -
Health Minister to brief media on Free Primary Healthcare programme on Monday
2 hours -
‘It was inappropriate to make that comparison’ – Dr Pumpuni Asante on CJ’s SOE comment
2 hours -
Photos: Final-day shopping continues at Joy FM Back-to-School Discount Fair
3 hours -
Darkey and Frimpong set up J30 Accra boys’ doubles final
3 hours -
When war takes more than territory: The human cost of conflict
3 hours -
Review SHS placement policy to give more BECE candidates access – Kwesi Kwarteng
3 hours