When Vivanco headed to southern Peru to confront the constitutionalist movement of Ramon Castilla, Elías was assigned the governorship of the northern Peruvian provinces.
The internal Peruvian conflict was still undecided between the military factions of the country: Vivanco's and Echenique's against Castilla's and San Román's.
When Echenique's forces threatened to return to the capital, Elías declared the Lima Province in state of assembly, which meant the total suspension of labor and readiness of his able followers to take arms.
All of Lima and even guarding members of the provinces of Pisco, Ica, and Callao prepared to confront Echenique who, in the end and to everyone's astonishment, never arrived.
Elías did not cease in his actions to reach the government and returned to Peru through Tumbes to launch an unsuccessful coup d'état.