South Korea's Constitutional Court has formally removed impeached President Park Geun-hye over a corruption scandal that has plunged the country into political turmoil.
It was a stunning fall for Ms Park, the country's first female leader, who came to power in 2012 only to see her presidency descend into scandal.
The ruling by the eight-member panel opens her up to possible criminal proceedings, and makes her South Korea's first democratically elected leader to be removed from office since democracy came to the country in the late 1980s.
Ms Park's "acts of violating the constitution and law are a betrayal of the public trust," acting Chief Justice Lee Jung-mi said.
"The benefits of protecting the constitution that can be earned by dismissing the defendant are overwhelmingly big. Hereupon, in a unanimous decision by the court panel, we issue a verdict: We dismiss the defendant, President Park Geun-hye."
Ms Park's party said it "humbly accepts" the ruling and that it feels responsible for her downfall.
South Korea must hold an election within two months to choose Ms Park's successor. Liberal Moon Jae-in, who lost to Ms Park in the 2012 election, currently enjoys a comfortable lead in opinion surveys.
Whoever becomes the next leader will take over a country facing a hostile North Korea, a stagnant economy and deep social and political divides.
Pre-verdict surveys showed that 70-80% of South Koreans had wanted the court to approve Ms Park's impeachment. But there have been worries that Ms Park's removal would further polarise the country and cause violence between her supporters and opponents.
Thousands of people - both pro-Park supporters, many of them dressed in army-style fatigues and wearing red berets, and those who wanted Park gone - gathered around the Constitutional Court building and a huge public square in central Seoul.
Hundreds of police were on hand, while the streets near the court were lined with barricades.
Two people died as protests erupted following the court's decision.
A South Korean hospital official said a man in his 70s, believed to be a Park supporter, died from head wounds after falling from a police bus in front of the court. Police later confirmed a second death, without giving further details.
Thousands of Ms Park's supporters reacted angrily to the verdict, shouting and hitting police officers with flag poles, and climbing on buses the police used to create a perimeter protecting the court.
Meanwhile, South Korea's defence minister has ordered the military to be on alert for possible North Korean provocations attempting to exploit "unstable situations at home and abroad".
In a video conference with military commanders, Defence Minister Han Min Koo said North Korea can make "strategic or operational" provocations at any time. The North has test-fired ballistic missiles in recent weeks.
North Korea's state-run Korean Central News Agency published a short dispatch on the court ruling in Seoul, anticipating that Ms Park will now come under investigation as a "regular criminal".
Ms Park's parliamentary impeachment in December came after weeks of Saturday rallies that drew millions who wanted her resignation. Overwhelmed by the biggest rallies in decades, the voices of Park supporters were largely ignored. But they have recently regrouped and staged fierce pro-Park rallies.
People on both sides have threatened not to accept a Constitutional Court decision that they disagree with.
One of Ms Park's lawyers told the court last month that there will be "a rebellion and blood will drench the asphalt" if Ms Park is booted from office. Many participants at anti-Park rallies had said they would stage a "revolution" if the court rejected Ms Park's impeachment.
"If Park accepts the ruling and soothes those who opposed her impeachment, things will be quiet," said Yoon Tae-Ryong, a political scientist at Seoul's Konkuk University. "But looking at what she's done so far, I think that might be wishful thinking."
Others disagreed, saying violent protests would not be supported by the general public.
Prosecutors have arrested and indicted a slew of high-profile figures over the scandal, including Ms Park's confidante Choi Soon-sil, top Park administration officials and Samsung heir Lee Jae-yong. But Ms Park has avoided a direct investigation thanks to a law that gives a sitting president immunity from prosecution for most alleged crimes.
Since she is now no longer in power, prosecutors can summon, question and possibly arrest her. Her critics want to see Ms Park appear on TV while dressed in prison garb, handcuffed and bound like others involved in the scandal. But some analysts worry that could create a backlash by conservatives.
The United States said the removal of Ms Park is a domestic issue that does not affect its strong alliance with the country.
State Department spokesman Mark Toner said the US will continue to work with the acting president, Prime Minister Hwang Kyo-ahn, and looks forward to whomever South Koreans choose in a presidential election to be held within two months.
Mr Toner said Ms Park's removal is "a domestic issue on which the United States takes no position," and that it is up to the South Korean people to determine their country's future.
He said the two nations' alliance "will continue to be a linchpin of regional stability and security".
Japan's top diplomat said the country will continue to work with a South Korean government led by Ms Park's successor.
Foreign Minister Fumio Kishida told reporters he would not comment on the court ruling that removed the impeached president, citing internal politics.
:: July 27 2016 - A TV news channel reports on suspicions that one of Ms Park's former senior secretaries had pressured large companies into donating to K-Sports, a non-profit organisation aimed at internationally promoting South Korean sports.
:: September 20 - A newspaper reports that Choi Soon-sil, Ms Park's long-time friend, was involved in establishing and running K-Sports.
:: October 24 - Another TV station, citing files found on a tablet computer, reports that Ms Choi, who has no official government role, received classified government information such as advance drafts of presidential speeches.
:: October 25 - Ms Park publicly acknowledges her close ties with Ms Choi, and says Ms Choi helped her on speeches and public relations issues during her 2012 presidential campaign and after her 2013 inauguration.
:: October 27 - State prosecutors launch a special investigation team to look into the scandal.
:: October 29 - First of what becomes a series of large anti-Park rallies is held in Seoul.
:: October 30 - Ms Choi returns to South Korea from Germany. Two days later, while being rushed into a Seoul prosecutors' office, she tells reporters she "committed a sin that deserves death".
:: November 4 - Ms Park. in her second apology over the scandal. expresses remorse, but denies that she was involved in any legal wrongdoing.
:: November 20 - In indicting two former Park aides and Ms Choi, state prosecutors say they believe the president was "collusively involved" in criminal activities by the suspects, who allegedly bullied companies into giving tens of millions of dollars to foundations and businesses Ms Choi controlled, and enabled Ms Choi to interfere with state affairs. Ms Park's lawyer calls the accusations groundless.
:: December 3 - Opposition lawmakers formally launch an attempt to impeach Ms Park, setting up a floor vote. Massive crowds said to be more than 2 million demonstrate across the nation calling for Ms Park's removal.
:: December 9 - Politicians pass the impeachment bill on Ms Park by a vote of 234 for and 56 opposed. The Constitutional Court begins preparations for Ms Park's impeachment trial.
:: January 1 2017 - In a surprise New Year's meeting with reporters, Ms Park accuses her opponents of framing her.
:: January 5 - The Constitutional Court begins hearing arguments in Ms Park's trial. One of Ms Park's lawyers compares her impeachment to the "unjust" deaths of Jesus Christ and ancient Greek thinker Socrates.
:: January 16 - Ms Choi, Ms Park's jailed friend, appears in the impeachment trial and denies accusations related to her.
:: January 25 - A former culture minister tells court Ms Park's office blacklisted thousands of artists deemed as unfriendly to her government with an intention to deny them state support.
:: February 17 - Lee Jae-yong, the billionaire scion of Samsung, South Korea's largest business group, is arrested over suspicions that he bribed Ms Park and Ms Choi in exchange for business favours.
:: February 22 - One of Ms Park's lawyers tells court there will be a "rebellion and blood will drench the asphalt" if the court unseats Park and she is later acquitted of her charges through a criminal proceeding. Court closes arguments five days later.
:: March 10 - The eight-member Constitutional Court votes unanimously to remove Ms Park from office.