In 1826 engaged again in military activity, this time in the Cisplatine War. In the Argentine Civil War, he joined the Unitarian side, under the command of General José María Paz, and fought in La Tablada against federalist forces. After a long time in exile, he returned to the country after the fall of the Rosas' regime, and acted as Senator for San Luis Province. In 1856, he was designated commander of the frontier armed forces, and in 1859 he was elected Governor of San Luis, and fought at the Battle of Cepeda that same year.