Malaysia's former leader Najib Razak was hit with a travel ban Saturday as speculation mounted he was about to flee the country following his shock election loss, in a possible bid to avoid prosecution over a multi-billion-dollar scandal.
An angry crowd had gathered at a Kuala Lumpur airport, shouting at vehicles and seeking to stop them entering, after a purported flight itinerary leaked online showed Najib and his unpopular wife were planning to head to Indonesia.
Later Saturday, Najib -- who has been under growing pressure from inside his Barisan Nasional (BN) coalition since this week's landslide loss -- announced he was quitting as head of BN as well as its main party.
The coalition's defeat in the election at the hands of an alliance led by his one-time mentor Mahathir Mohamad amounted to a political earthquake, which toppled an increasingly authoritarian regime that had ruled the country for six decades.
At 92, Mahathir is the world's oldest state leader. He previously served as prime minister for over two decades, and was himself accused of ruling with an iron fist.
Speculation had been mounting that Najib, who has been embroiled in a massive scandal related to state fund 1MDB, might try to flee the country as Mahathir has pledged to investigate the controversy.
As an image of the leaked manifest for a flight to Jakarta spread like wildfire online, Najib insisted in social media posts he was planning only a "short break" overseas to rest after the election and would be back next week.
But anger quickly mounted among social media users who accused the defeated leader of seeking to flee, and the immigration department swiftly announced both he and his wife Rosmah Mansor were banned from leaving Malaysia.
"The immigration department has just now blacklisted Najib and Rosmah from leaving the country," Mustafar Ali, director-general of the department, told AFP.
Najib said in a tweet he had been informed of the move. "I respect the decision and I will remain in the country with my family," he said.
Rosmah has long been a lightning rod for public anger in Malaysia due to her reported love of luxury shopping trips and vast collection of designer handbags.
Her openly spendthrift ways have been galling for ordinary Malaysians who increasingly complain of soaring living costs, particularly after Najib's government introduced an unpopular sales tax in 2015.
Earlier, as dozens of people descended on the airport in a bid to stop them leaving, riot police were stationed by the gate of the airport where it was believed Najib would enter.
As a white van with heavily tinted windows attempted to pass by, the crowd surrounded the vehicle and demanded it be opened so they could see who was inside.
They tried to rock the vehicle and one man shouted "I hate Rosmah".
It was only allowed to pass after those inside rolled down a window to prove Najib was not in the van.
Later Saturday, in an emotionally charged press conference, Najib announced he was stepping down as chairman of BN and president of its main party, the United Malays National Organisation (UMNO).
His departure had seemed increasingly inevitable as rumblings of discontent grew louder following BN's historic wipeout at the polls. They won just 79 seats in parliament -- down from the 133 they held previously.
"If the party failed in the general election, the leader has the moral obligation to step aside," he said.
The US State Department alleges in civil lawsuits that $4.5 billion was pillaged from 1MDB in an audacious scheme of fraud and money-laundering, and funnelled to the United States where it was used to buy everything from artwork to high-end real estate.
Najib and 1MDB deny any wrongdoing.
One of the biggest developments since Mahathir's shock win was his announcement Friday that the king had agreed to pardon jailed leading politician Anwar Ibrahim, his former nemesis turned ally.
This would pave the way for Anwar's return to politics and to potentially become premier later. Mahathir has said he plans to eventually hand the premiership to Anwar.