Najib Razak has been charged with corruption, a dramatic fall from grace for the former Malaysian prime minister two months after he lost office.
He faces three counts of criminal breach of trust and one count of abuse of power. He pleaded not guilty to all counts and has been released on bail.
Mr Najib has long been accused of pocketing $700m (£517m) from the state development fund 1MDB, which he set up.
A new investigation began after his shock election loss in May.
Mr Najib was arrested by anti-corruption authorities on Tuesday and spent the night in detention.
In a video posted on Twitter a day earlier, he appealed to the public not to believe the reports, saying that not all of the accusations were true. “I have not had a chance to defend myself,” he said.
The charges against him carry a maximum of 20 years imprisonment.
The bail amount was set at 1m Malaysian ringgit ($250,000; £190,000).
‘Never thought I’d see the day’
Several hundred people gathered outside Kuala Lumpur High Court to see Mr Najib. Some of his supporters turned up, as did dozens of journalists.
There were also onlookers; people who had come simply to see a former prime minister appear in court.
Mr Najib showed little emotion as he pushed his way through the crowd to the court’s main door.
It’s not clear if it was his decision to walk in using the front entrance, or whether he had been forced to.
Inside, other cases were taking place, but the main interest was on Mr Najib.
Ushers constantly tried to silence excited people gathered in corridors; the noise was disturbing other cases.
Lawyers waiting to be called for their own hearings wandered over to try to get a look at the former prime minister. “I never thought I’d see the day,” said one.
1MDB, set up by Mr Najib in 2009, was meant to turn the capital, Kuala Lumpur, into a financial hub and boost the economy through strategic investments.
But it started to attract negative attention in early 2015 after it missed payments for some of the $11bn it owed to banks and bondholders.
Then the Wall Street Journal (WSJ) reported it had seen a paper trail that allegedly traced close to $700m from the fund to Mr Najib’s personal bank accounts.