The president of SriLanka fled to theMaldives on a military jet after mass protests over his country's economic crisis caused shortages of food and fuel.

The president flew with his wife and two security personnel, according to the air force. The immigration official told The Wall Street Journal that it was a military plane.

Over the weekend, the president promised to step down as thousands of people protested. The protesters were in the water.

People lie on bed in Sri Lanka President's official residence
People crowd inside the official residence of Sri Lanka's President, in Colombo, on July 10, 2022,
AFP via Getty Images

Immigration officers blocked him from leaving the country at the airport on Tuesday.

The speaker of Sri Lanka's parliament appointed the country's prime minister, Ranil Wickremesinghe, as acting president because of a clause in the country's constitution that allows it, according to a report.

Protesters on the street with a water cannon behind them.
Sri Lankan riot police officers fire tear gas and water cannons during the university students anti-government protest amid the economic crisis on May 19, 2022 in Colombo, Sri Lanka
Buddhika Weerasinghe / Contributor / Getty Images

Hundreds of people surrounded the prime minister's office and demanded his resignation.

The country of 22 million people is "bankrupt" on Tuesday.

The price of basic items has doubled in Sri Lanka, and people have had to wait for days for fuel.