Sri Lankans on Thursday woke up to confusion on their embattled president to resign after he fled the country, as the island nation fumes over an economic meltdown that has sparked political chaos.

On Wednesday, President Gotabaya Rajapaksa and his wife fled to the Maldives aboard an air force jet. He made the prime minister acting president in his absence — a move that further roiled passions among a public that blames Rajapaksa for an economic crisis that has caused severe shortages of food and fuel.

Also read: Sri Lankan President Gotabaya Rajapaksha likely to fly to Singapore on July 14

Rajapaksa had promised to resign by Wednesday night, and since Sri Lankan presidents are protected from arrest while in power it’s likely he planned his escape while he still had constitutional immunity and access to a military jet.

It was unclear exactly where he was in the Maldives, an archipelago of hundreds of islands famed for luxury tourist resorts, and where he planned to travel next.

Also read: How will a new Prime Minister be elected in Sri Lanka?

On Wednesday, protesters, undeterred by multiple rounds of tear gas, scaled the walls to enter the office of Prime Minister Ranil Wickremesinghe as the crowd outside cheered in support and tossed water bottles to them.

Protesters took turns posing at the prime minister’s desk or stood on a rooftop terrace waving the Sri Lankan flag after the latest in a series of takeovers of government buildings by the demonstrators — who see the political manoeuvres as delaying their goal of a new government.

Also read: US urges Sri Lankan leader to have peaceful transfer of power amid mass protests

Late on Wednesday night, crowds also gathered outside the Parliament. Demonstrators clashed with security officers who fired tear gas into the air.

Wickremesinghe’s office declared a nationwide curfew and imposed a state of emergency giving broader powers to the military and police. The curfew was lifted early Thursday.

Also read: Ukraine’s Volodymyr Zelensky holds Russia ‘responsible’ for ongoing Sri Lanka crisis

Over the weekend, the two leaders both said they would resign after protesters stormed Rajapaksa’s and Wickremesinghe official residences in a dramatic escalation of months of protests. Some set fire to Wickremesinghe’s private residence, and his whereabouts were unknown.

The protesters blame Rajapaksa and his powerful, dynastic family for leading the country into an economic abyss, but they are also furious with Wickremesinghe, whom they accuse of protecting the president. Many believe that his appointment in May alleviated pressure on Rajapaksa to resign.

“We need both … to go home,” said Supun Eranga, a 28-year-old civil servant in the crowd on Wednesday. “Ranil couldn’t deliver what he promised during his two months, so he should quit. All Ranil did was try to protect the Rajapaksas.”

Also read: Sri Lanka crisis: 26-year-old dies as protesters breach PM’s Office

But Wickremesinghe has said he will not leave until a new government is in place. He has urged the speaker of Parliament to find a new prime minister agreeable to both the ruling and opposition parties.

It’s unclear when that might happen since the opposition is deeply fractured. But assuming that Rajapaksa resigns as planned, Sri Lankan lawmakers have agreed to elect a new president on July 20 who will serve the remainder of Rajapaksa’s term, which ends in 2024. That person could potentially appoint a new prime minister, who would then have to be approved by Parliament.