Peña resigned from the presidency of Paraguay after becoming entangled in a crisis that erupted following the intervention of the financial institution Ueno Bank. The political fallout from the bank's closure directly led to the end of his presidency according to the provided text.