The Latest: Guatemalan president resigns as corruption investigation closes in

A stret vendor of religious images checks his mobile phone, at Constitution Square in Guatemala City, Wednesday, Sept. 2, 2015. (AP Photo/Esteban Felix) (The Associated Press)

A driver waves a Guatemala flag as he celebrates that Congress voted to withdraw President Otto Perez Molina's immunity from prosecution, in Guatemala City, Tuesday, Sep. 1, 2015. Perez Molina's government has been beset by a series of corruption cases, but until now he has been immune to prosecution as president. (AP Photo/Luis Soto) (The Associated Press)

Lawmakers applaud after Guatemalan President Otto Perez Molina was stripped of his immunity from prosecution, in Guatemala City, Tuesday, Sept. 1, 2015. With at least 105 of the 158 votes in Congress needed to approve the measure, 132 lawmakers backed the measure Tuesday afternoon. It does not remove Perez Molina, who denies any wrongdoing, from office, but instead means that prosecutors can file criminal charges against him just like any other citizen. (AP Photo/Luis Soto) (The Associated Press)

The latest on the resignation of Guatemalan President Otto Perez Molina (all times local):

___

6:40 a.m.

Otto Perez Molina says through his attorney that he will appear before a judge on Thursday to face the corruption charges against him following his resignation as president of Guatemala.

Perez Molina submitted his resignation at midnight Wednesday local time after a judge issued an order to detain him in a customs fraud case that earlier led to the resignation of his vice president.

The resignation must be approved by the congress, which was to consider the matter on Thursday morning.

Perez Molina was already under order not to leave the country, and on Tuesday the congress lifted his immunity from prosecution.