South Korea's constitutional court has confirmed the dismissal of President Yoon Suk Yeol, who was impeached in December after declaring martial law.
His decision to send troops onto the streets led to the country's worst political crisis in decades.
The court ruled to uphold the impeachment saying the conservative leader "violated his duty as commander-in-chief by mobilising troops" when he declared martial law.
The president was also said to have taken actions "beyond the powers provided in the constitution".
Supporters and opponents of the president gathered in their thousands in central Seoul as they awaited the ruling.
The 64-year-old shocked MPs, the public and international allies in early December when he declared martial law, meaning all existing laws regarding civilians were suspended in place of military law.
It was only short-lived, as mass protests erupted and politicians on both sides voted to make Mr Yoon's declaration void in a matter of hours.
His presidential powers were suspended when the opposition-dominated assembly voted to impeach him on 14 December, accusing him of rebellion.
The unanimous verdict to uphold parliament's impeachment and remove Mr Yoon from office required the support of at least six of the court's eight justices.
South Korea must hold a national election within two months to find a new leader.
Lee Jae-myung, leader of the main liberal opposition Democratic Party, is the early favourite to become the country's next president, according to surveys.