May Revolution
After the May Revolution of 1810, when Buenos Aires declared independence from Spain, Heredia joined the Army of the North.