Sri Lankan Prime Minister Ranil Wickremesinghe has been appointed acting president after incumbent Gotabaya Rajapaksa fled to the Maldives, the parliamentary Speaker announced on Wednesday as thousands of protesters demanded both men step down.
"Because of his absence from the country, President Rajapaksa told me that he has appointed the prime minister to act as the president in line with the constitution," Mahinda Yapa Abeywardana said in a brief televised statement.
Sri Lanka declared a state of emergency on Wednesday, hours after Mr Rajapaksa fled the country.
Protesters had stormed Mr Wickremesinghe's office to demand his resignation.
Police said they would impose an indefinite curfew across the Western Province, which includes the capital Colombo, to contain the protests after Mr Rajapaksa flew to the Maldives in a military aircraft.
He left hours before he was expected to step down as widespread protests against his handling of a worsening economic crisis continued.
Thousands of demonstrators had mobbed the prime minster's office, prompting police to fire tear gas to hold them back from overrunning the compound.
"There are ongoing protests outside the prime minister's office in Colombo and we need the curfew to contain the situation," a senior police officer told AFP.
A senior source told Reuters the president left for the archipelago's capital Male.
The country's air force said it provided a plane early on Wednesday to fly him, his wife and two security officials out of the country "under the provisions of the constitution and on a request by the government".
Key members of Sri Lanka's ruling party are keen to back Mr Wickremesinghe as their presidential nominee, a senior party source told Reuters on Wednesday. No decision has yet been taken.
Members met on Tuesday evening, with the "overwhelming consensus" being for Mr Wickremesinghe to replace Mr Rajapaksa.
The Indian High Commission in Colombo said on Twitter it "categorically denies baseless and speculative media reports" that India helped to arrange the departure of Mr Rajapaksa and his wife from Sri Lanka.
The president would most likely proceed to another Asian country, the source told Reuters.
The immigration official said the authorities could not prevent a sitting president from leaving the country.
Mr Rajapaksa was due to step down on Wednesday to make way for a unity government.
It comes after thousands of protesters stormed his and the prime minister's official residences on Saturday, demanding they step down.
The president has not been seen in public since Friday. Parliament will elect his replacement on July 20.
The Rajapaksa family, including Mr Gotabaya's brother, former prime minister Mahinda Rajapaksa, have dominated the politics of the country of 22 million for years. Most Sri Lankans blame them for current problems.
The tourism-dependent economy was hammered badly by the Covid-19 pandemic and a fall in remittances from overseas Sri Lankans, while a ban on chemical fertilisers damaged farm output. The ban was later reversed.
Import cuts on fuel, food and medicine
The Rajapaksas introduced populist tax cuts in 2019 that affected government finances, while shrinking foreign reserves curtailed imports of fuel, food and medicine.
Petrol has been severely rationed and long lines have formed in front of shops selling cooking gas. Headline inflation hit 54.6 per cent last month and the central bank has given a warning that it could rise to 70 per cent in coming months.
Mahinda Rajapaksa, who previously also served as president, resigned as prime minister in May after protests against the family turned violent. He remained in hiding at a military base in the east of the country for some days before returning to Colombo.
In May, the Rajapaksa government appointed Mohammed Nasheed, the Speaker of the Maldives parliament and a former president, to help co-ordinate foreign assistance for crisis-hit Sri Lanka.
The same month, Mr Nasheed publicly denied allegations that he was helping Mahinda Rajapaksa secure a safe haven in the Maldives.
The protests against the Sri Lankan government have simmered since May, but erupted again last Saturday when hundreds of thousands of people surged into Colombo and occupied key government buildings and residences.
On Tuesday, immigration officials prevented another of the president's brothers, former finance minister Basil Rajapaksa, from flying out of the country.
It was not clear where Basil Rajapaksa, who also holds US citizenship, was trying to go. He resigned as finance minister in early April amid street protests against fuel and food shortages, and quit his seat in Parliament in June.