 He was then promoted to the rank of corvette captain and was in command of the Peruvian squad during the conflict with Spain in 1866.In 1871, Montero was among the founders of the Civilista Party.He was chosen senator for his native Piura and, five years later, was promoted to the rank of admiral.