Indonesia's central bank governor ​stepped down on Monday, in a surprise move that deepens uncertainty as the country grapples with a weakening currency and other economic woes brought on by the Middle East war.

President Prabowo Subianto has accepted the resignation of Perry Warjiyo, who had served as Bank Indonesia's (BI) governor since 2018, State Secretary Prasetyo Hadi told reporters in Jakarta.

Warjiyo, whose second term was meant to expire in 2028, cited unspecified personal reasons for the surprise resignation, which he tendered on Saturday.

The bank's senior deputy governor, Destry Damayanti, has been appointed interim governor, said Hadi.

The rupiah weakened as much as 0.36% to 18,000 to the U.S. dollar following the announcement, while the main stock index flipped between gains and losses in choppy trade.