The Chamber of Deputies then accused Martínez Mera of attempting to overthrow the government and institute a dictatorship. The Senate subsequently impeached Martínez and named his Minister of Interior, Abelardo Montalvo, acting president. Montalvo stayed on as acting president until José María Velasco Ibarra was elected.