A Seoul court ordered Ms. Park’s arrest after a marathon court hearing. She was stripped of her immunity when she was dismissed from office by the country’s top court earlier this month.

South Korea’s ousted President Park Geun-hye arrived at a detention centre near Seoul early Friday after being arrested over the corruption and abuse of power scandal that brought her down.

The Seoul Central District Court ordered Ms. Park’s arrest on charges of bribery, abuse of authority, coercion, and leaking government secrets, after a marathon court hearing the previous day.

“It is justifiable and necessary to arrest as key charges were justified and there is risk of evidence being destroyed,” the court said in a statement.

Television footage of the former leader showed her looking grim and staring straight ahead as she left the prosecutor’s office to be taken into custody.

Despite the early hour, when Ms. Park arrived at the jail in a black sedan at around 4.45 a.m. (1.15 a.m. IST), about 50 supporters were at the gates to greet her, waving national flags and chanting slogans demanding her release.

Ms. Park, 65, becomes the third former leader to be arrested over corruption in Asia’s fourth-largest economy, where politics and big business have long been closely tied.

She will now be processed and placed in a cell after changing into prison garb with her prisoner number emblazoned on the chest.

Being taken into custody is a dramatic step in the disgrace of South Korea’s first woman President, and was a key demand of the millions of people who took to the streets to protest against her as the scandal engulfed her leadership last year.

The former leader was grilled for nearly nine hours in court on Thursday as a judge deliberated whether she should be arrested.

Ousted South Korean President Park Geun-hye (centre) leaves after a hearing at the Seoul Central District Court on Thursday.

She was stripped of her immunity when she was dismissed from office by the country’s top court earlier this month. She has denied the accusations against her.

Choi Soon-sil, Park’s secret confidante at the heart of the scandal, is already on trial for forcing top local firms including tech giant Samsung to “donate” nearly $70 million to non-profit foundations which she allegedly used for personal gain.

Ms. Choi is being held at the same detention centre as Ms. Park. Samsung Electronics vice-chairman Lee Jae-Yong was also arrested last month in connection to the scandal.

Ahead of the hearing on Thursday, prosecutors submitted around 120,000 pages of documents to the Seoul Central District Court relating to the charges against Ms. Park, and said it would be “counter to the principle of fairness” if she was not arrested.

“The accused is denying most of the charges, and there is a risk of destroying evidence in the future,” they said.

Opposition lawmakers had called on Thursday for Ms. Park’s arrest.

“The least she can do as the ex-President who damaged national dignity is to admit her criminal acts, bow her head and seek forgiveness,” said a spokesman for the main opposition Democratic Party.

An election to choose her successor will be held on May 9, 2017. Moon Jae-in, her rival in 2012 and a former Democratic Party leader leads opinion polls by large margins.

‘Sleepless nights’

Ms. Park, daughter of late dictator Park Chung-Hee, secured the largest vote share of any candidate in the democratic era when she was elected in 2012.

But she was impeached by parliament in December, as the scandal combined with mounting economic and social frustrations to trigger huge candlelit demonstrations. The Constitutional Court later upheld the decision.

Last week she underwent a 21-hour interrogation session at the prosecutors’ office, having refused repeated requests to be interviewed while in power.

She had been “lost for words” when authorities asked for her arrest, the Chosun Ilbo daily quoted an unidentified pro-Park lawmaker as saying.

Another said she had been having “sleepless nights and skipping meals” since moving out of the presidential palace.

Ms. Park allegedly offered governmental favours to top businessmen who enriched Ms. Choi, including Samsung’s Mr. Lee.

She is also accused of letting her friend, a high school graduate with no title or security clearance, handle a wide range of state affairs including nomination of top officials.

Ms. Park is also said to have cracked down on thousands of artists who had voiced criticisms of her or her father’s iron-fisted rule from 1961 to 1979.

She has repeatedly apologised for the upset caused by the scandal but not admitted any wrongdoing, blaming Ms. Choi for abusing their friendship.