Bangladesh’s President Mohammed Shahabuddin has ordered the release of jailed former prime minister and key opposition leader Khaleda Zia, hours after her archrival Sheikh Hasina was ousted and fled the country.

The president’s press team said in a statement on Monday that a meeting led by Shahabuddin had “decided unanimously to free Bangladesh Nationalist Party (BNP) chairperson Begum Khaleda Zia immediately”.

Army chief General Waker-Uz-Zaman, along with the head of the navy and air force, and top leaders of several opposition parties, including the BNP and the Jamaat-e-Islami party, attended the president’s meeting.

Zia, 78 and twice the prime minister of Bangladesh, is in poor health and confined to hospital after she was sentenced to 17 years in prison for corruption in 2018.

She shares a long-standing rivalry with Hasina, and was accused of misusing her power by embezzling some $250,000 in donations meant for an orphanage trust.

The BNP has said the cases were fabricated and aimed at keeping Zia away from politics, allegations denied by Hasina’s government.

“The meeting has also decided to free all the people who have been arrested during the student protests,” the president’s statement added.