Editor's Note: (Are you in Zimbabwe? We want to hear how you're reacting to Robert Mugabe's resignation. Contact CNN via WhatsApp at +1 347-322-0415.)
Harare, Zimbabwe(CNN) Robert Mugabe resigned as Zimbabwe's President on Tuesday after 37 years of autocratic rule, finally succumbing to the pressure of a military takeover and the humiliation of impeachment.
The announcement came minutes into a joint session of the Zimbabwean Parliament in Harare, convened to prise the 93-year-old from power.
As the speaker read out a letter from Mugabe, lawmakers broke out in thunderous applause. The impeachment proceedings were immediately suspended.
Mugabe's successor, according to a spokesman for the ZANU-PF party, will be former Vice President Emmerson Mnangagwa, whose firing by Mugabe precipitated the crisis.
In the streets outside, crowds erupted in rapturous celebrations, dancing and cheering in joy, raising their fists and waving Zimbabwean flags.
Zimbabwe's members of Parliament celebrate after Mugabe's resignation.
It was the culmination of an extraordinary week in the history of Zimbabwe that began when the country's military leaders staged an unprecedented intervention to prevent the ascent to power of Mugabe's 52-year-old wife, Grace.
When the crisis started, it bore all the hallmarks of a coup. At the end, it almost resembled a popular revolt. "We think that this is the work of God," one young man told CNN in Harare. "We were in crisis for a long time, and this is a new day for Zimbabweans."
Key developments
Mugabe's letter: The ousted President insisted his resignation was voluntary. "I have resigned to allow smooth transfer of power," he wrote. "Kindly give public notice of my decision as soon as possible."
Successor lined up: Mnangagwa was the ZANU-PF's pick to succeed Mugabe, according to Simon Khaya Moyo, a spokesman for the ZANU-PF party. Mnangagwa will be sworn in within 48 hours of the Parliament speaker announcing Mugabe's resignation.
International reaction: Theresa May, the Prime Minister of Britain, from which Zimbabwe gained independence in 1980, said Mugabe's resignation provided the country "with an opportunity to forge a new path free of the oppression that characterized his rule."
Zimbabweans celebrate Robert Mugabe's resignation after 37 years of rule, in Harare on Tuesday.
What happened
Mugabe's announcement was an acknowledgment of the inevitable. In reality, he lost his grip on power six days ago when the country's top generals launched what amounted to a military coup, placing the veteran leader under house arrest.
After nearly four decades of unimpeded rule, which began amid the triumph of independence from Britain, Mugabe's political downfall unfolded in just two weeks.
The crisis began on November 6 when Mugabe fired Mnangagwa as vice president, in an apparent attempt to clear a path for his wife, Grace Mugabe, to succeed him.
Political upheaval grips Zimbabwe
Members of Zimbabwe's Parliament celebrate after the resignation of longtime President Robert Mugabe was announced on Tuesday, November 21. Mugabe, 93, had led the country for nearly four decades.
His resignation comes six days after military leaders seized control of the nation and placed him under house arrest.
Protesters call for Mugabe's impeachment near the Parliament building in Harare on November 21.
Demonstrators protest outside the Parliament building on November 21.
Jacob Mudenda, the speaker of Zimbabwe's Parliament, presides over a session where a motion was moved to impeach Mugabe.
A man accused of supporting Mugabe is attacked outside Parliament on November 21.
People gather to pray for the country in a park near Parliament on November 21.
Lawmakers meet inside Parliament on November 21.
Gen. Constantino Chiwenga speaks during a news conference in Harare on Monday, November 20. Military leaders had been in talks with Mugabe over his exit, and Chiwenga said that progress had been made.
Students from the University of Zimbabwe participate in a demonstration in Harare on November 20.
Newspapers are held in place with rocks at a newsstand in Harare on November 20.
At a bar in Harare, people watch Mugabe give a televised address to the nation on Sunday, November 19. Mugabe ended
the address without giving his resignation.
Mugabe meets with generals in Harare on November 19.
Members of the ruling party ZANU-PF react after the decision to oust Mugabe as party leader on November 19.
A portrait of Mugabe hangs in the hall of the ZANU-PF headquarters, where delegates met for a special committee on November 19. Mugabe co-founded the party and had been its leader for decades.
A woman and her daughter look out from their balcony as a crowd of protesters gather on the road leading to the State House in Harare on Saturday, November 18.
People hold a portrait of Zimbabwe's former vice president, Emmerson Mnangagwa, during a demonstration demanding Mugabe's resignation on November 18. ZANU-PF announced Mnangagwa as its new party leader. He was fired by Mugabe on November 6.
A soldier greets a citizen during a demonstration on November 18.
People in Harare react as they see a military helicopter fly overhead during protests against Mugabe on November 18.
Mugabe, center, arrives to preside over a student graduation ceremony at Zimbabwe Open University on Friday, November 17. It was his first public appearance since the military takeover.
Mugabe, right, is seen in talks about his future in this image
tweeted by Caesar Zvayi, the editor of The Herald newspaper, on Thursday, November 16.
An armored vehicle is on patrol in Harare on November 16.
Business continues as usual in Harare as roadside vendors sell vegetables on November 16.
Members of the military check a gun as they stand atop an armored vehicle parked in Harare's central district on November 16.
An overview of Harare on November 16.
A banner of Mugabe remains outside the ZANU-PF headquarters in Harare on November 16.
Soldiers seal off a main road to the parliament building in Harare on November 15.
Soldiers patrol a street in Harare on November 15.
Soldiers inspect a vehicle on a road leading to Mugabe's office in Harare on November 15.
Residents in Zimbabwe's capital line up to withdraw money from a bank on November 15.
Two pedestrians pass behind an armored personnel carrier stationed at an intersection in Harare on November 15.
A man in Harare reads a special edition of The Herald newspaper on November 15.
An armored military vehicle is seen outside the building of the state-run Zimbabwe Broadcasting Corp. on November 15.
Soldiers monitor traffic in Harare on November 15 as the military set up checkpoints at key locations in the city.
In a screen grab of a TV broadcast on the Zimbabwe Broadcasting Corp., Maj. Gen. Sibusiso Moyo reads a statement saying the military was conducting an operation to target "criminals" close to the President who were causing "social and economic suffering." He denied a coup was underway.
Army generals and senior figures in Mugabe's ZANU-PF party, suspicious of the first lady's lavish lifestyle and political ambitions, were horrified by the possibility she could take over.
On Tuesday, tanks were seen outside Harare and in the early hours of Wednesday morning, an army spokesman appeared on state TV to declare that a military operation was underway. By dawn it was clear that Mugabe was under house arrest, and his grip on power ebbing away.
But Mugabe clung to power for a further six days, quitting only after his party ousted him as leader, and Parliament began impeachment proceedings.
The whereabouts of the former President and his wife were unknown on Tuesday. Grace Mugabe -- dubbed "Gucci Grace" for her penchant for extravagant shopping expeditions -- has not been seen since the day of the military takeover. Her husband's last appearance was during a television statement on Sunday night.
Zimbabweans raise their fists at the news of Robert Mugabe's resignation.
What comes next
ZANU-PF ousted Mugabe as leader of the party and installed Mnangagwa in his place on Sunday.
Emmerson Mnangagwa, left, served beside Robert Mugabe, right, throughout the leader's entire political career.
Mnangagwa has not been seen in the country since his dismissal on November 6, but he broke his silence on Tuesday to add his voice to those calling on Mugabe to resign. Mnangagwa, who enjoys widespread support in the military, was widely believed to be in touch with senior generals behind the scenes.
Mnangagwa: A 'tyrant' who could be Zimbabwe's next president
As Zimbabweans celebrated the demise of Mugabe on Tuesday, it was unclear whether they would welcome Mnangagwa.
Nicknamed "The Crocodile" for his political cunning and longevity, Mnanagagwa served as Mugabe's right-hand man for years.
He has been accused of orchestrating a string of massacres in the early 1980s to consolidate Mugabe's power, when he served as the leader's spy chief. The violence left up to 20,000 dead, mostly supporters of Mugabe's political opponents. Mnangagwa denies the allegations.
In late 2000, a cable written by a US diplomat in Harare, Earl Irving, described Mnangagwa as "widely feared and despised throughout the country," warning he could be "an even more repressive leader" than Mugabe if he were to succeed him.
End of an era
The life and career of Robert Mugabe
Robert Mugabe is sworn in for his seventh term as Zimbabwe's President in August 2013.
He resigned in November 2017 after nearly four decades in power.
Mugabe gestures towards the media in Geneva, Switzerland, at a 1974 conference convened to address the civil war in Rhodesia. After being imprisoned for 10 years in Rhodesia, Mugabe attended the peace talks as a leader of the guerrilla movement ZANU-PF (Zimbabwe African National Union-Patriotic Front). Rhodesia was the state that eventually became Zimbabwe.
Mugabe speaks to the press in Geneva in 1976. The following year he was elected president of ZANU-PF and commander-in-chief of the Zimbabwe African National Liberation Army.
Mugabe holds a news conference in Salisbury -- now Harare, the capital of Zimbabwe -- in March 1980. He had just been elected as the first prime minister of Zimbabwe, helping to form the new country after British rule of Rhodesia came to an end.
From left, NBC News moderator Bill Monroe, Newsday's Les Payne, the Chicago Sun Times' Robert Novak and NBC News' Garrick Utley speak with Mugabe during an episode of "Meet the Press" in 1980.
Mugabe holds hands with Libyan leader Moammar Gadhafi at the Organization of African Unity summit in August 1982.
Mugabe speaks with his first wife, Sally, during an event in Salisbury in 1980. The pair were married until Sally died in 1992. They had one son, who died at age 4.
Mugabe meets with French President Francois Mitterand in Paris in 1982.
Mugabe is seen with Indian Prime Minister Indira Gandhi in New Delhi in 1983.
Mugabe walks hand in hand with American civil rights activist Jesse Jackson during the Summit of Non-Aligned Countries, which Harare hosted in 1986.
Mugabe delivers a speech in Harare in August 1986.
Mugabe poses for a photo with other leaders at a Commonwealth of Nations meeting in London in 1986. Pictured from left, in the back row, are Indian Prime Minister Rajiv Gandhi, Canadian Prime Minister Brian Mulroney, Commonwealth Secretary-General S.S. Ramphal, Australian Prime Minister Robert Hawke and Mugabe. In the front row, from left, are British Prime Minister Margaret Thatcher, Bahamian Prime Minister Lynden Pindling and Zambian President Kenneth Kaunda.
Britain's Queen Elizabeth II toasts Mugabe during a banquet in the Queen's honor in Harare in October 1991. The Queen had last visited the territory that became Zimbabwe in 1947.
US President Bill Clinton gestures while talking to Mugabe after a White House meeting in Washington in May 1995.
Mugabe marries Grace Marufu on August 17, 1996. Earlier in the year, he was re-elected President after all of his opponents dropped out of the race.
British Prime Minister Tony Blair talks with Mugabe in October 1997, before the start of the Commonwealth Heads of Government meeting.
Mugabe speaks during the Southern Africa trade and investment summit in Windhoek, Namibia, in October 2000. Earlier in the year, he implemented a controversial land-reform program that saw the seizure of land from some 4,000 white farmers.
Mugabe and Cuban President Fidel Castro are seen in Havana, Cuba, in September 2005.
South African President Jacob Zuma walks with Mugabe at Harare International Airport in March 2010.
Mugabe addresses the 65th session of the United Nations General Assembly in September 2010.
Mugabe cuts his birthday cake with his wife, Grace, and son Bellarmine Chatunga during celebrations in Harare in February 2011. Mugabe was turning 87.
Robert and Grace Mugabe arrive at the Vatican for the beatification ceremony of John Paul II in May 2011.
Mugabe delivers a speech at his party's annual national conference in December 2012. He vowed to overhaul business laws to require 100% black ownership of firms.
The Mugabes attend Pope Francis' inauguration Mass in March 2013.
Mugabe and Chinese President Xi Jinping participate in a signing ceremony in Beijing in 2014.
Mugabe speaks at the ZANU-PF party's annual conference in December 2016. The party endorsed Mugabe as its candidate for the 2018 election.
Mugabe reviews the guard of honor during Zimbabwe's 37th Independence Day celebrations in April 2017.
Mugabe arrives to preside over a student graduation ceremony at Zimbabwe Open University in November 2017. It was his first public appearance since the military
seized control of the nation and placed him under house arrest.
Mugabe meets with generals in Harare in November 2017. Military leaders had been in talks with Mugabe over his exit.
Mugabe casts his vote in the 2018 Zimbabwe elections.
Mugabe's resignation marks the end of an era in Zimbabwe. He ruled the country with an iron fist for almost four decades and is the only leader the nation has known since it achieved independence from Britain in 1980.
Mugabe's political demise is the consequence of a struggle over who would succeed him in ZANU-PF, a party split between those loyal to Mnangagwa and supporters of Grace Mugabe.
It was a humiliating departure for Mugabe, who clung onto power for a week but eventually buckled to pressure.
The party he co-founded to usher the country into independence ousted him, the military that he commanded placed him under house arrest and his most powerful allies abandoned him.
Mugabe rose to power as a freedom fighter and was once regarded as Zimbabwe's own Nelson Mandela. But he quickly waged a campaign of oppression to shore up his authority, extinguishing the political opposition through violent crackdowns.
Mugabe's hardline policies also pushed the country into poverty. Its flourishing economy began to disintegrate after a program of land seizures from white farmers, and agricultural output plummeted and inflation soared.
Over the decades, Mugabe and his wife faced fierce criticism for leading lavish lifestyles as the country was plunged into economic ruin.
The chairman of the African Union Commission said he welcomed Mugabe's decision to step down.
"Today's decision will go down in history as an act of statesmanship that can only bolster President Mugabe's political legacy," Moussa Faki Mahamat said in a statement.
"The African Union recognizes that the Zimbabwean people have expressed their will that there should be a peaceful transfer of power in a manner that secures the democratic future of their country. President Mugabe's decision to resign paves the way for a transition process, owned and led by the sovereign people of Zimbabwe."
CNN's Hilary Clarke contributed to this report.