Paraguayan President Santiago Peña announced his resignation Thursday, only minutes before the lower house voted 78-0 to impeach him amid a banking crisis. The Associated Press, in reporting published by NPR, said the collapse of Ueno Bank had sparked three days of demonstrations and cost Peña his party’s support.

The impeachment vote referred the case to the Senate; it did not itself remove Peña from office. Congress was expected to accept his resignation later Thursday, allowing Vice President Pedro Alliana to take over and complete the presidential term ending in August 2028.

An earlier AP report carried by ABC News described how the political break developed: former President Horacio Cartes, the Colorado Party’s powerful leader, withdrew his backing, and both main party factions in the lower house pledged to support impeachment.

Ueno claimed to serve more than 60% of Paraguay’s adults. Its seizure by the central bank Tuesday left customers unable to use its app, cards or transfers. Officials said repayments had begun and replacement accounts had been opened for about 280,000 people who previously banked only with Ueno.

The crisis also intensified scrutiny of Peña’s financial and regulatory ties. Until last year, he held a stake in Ueno’s holding company. He had appointed Carlos Carvallo, who led the lender’s predecessor, to head the central bank. Ueno reported roughly $800 million in public deposits as of October.

According to the central bank, investigators found inadequately documented loans and expenses improperly recorded as assets. Accounting corrections pushed Ueno’s capital below half the required minimum. Authorities detained eight senior executives, and prosecutors charged 27 officials and associates with offenses including attempted fraud. Lawyers for several detainees said they needed to examine the allegations before commenting.