In 1814 he joined the Northern Army, with which he participated in the third auxiliary expedition to Upper Peru. He fought in the Battle of Sipe-Sipe, where he was taken prisoner. He managed to escape and return to Córdoba. He later participated in the war against the federal province of Santa Fe and participated in the Arequito mutiny.