When the war of independence against Spain broke out in October 10, 1868, he played a pivotal role in the uprising of Camagüey which took place on November 4, 1868. Agramonte himself joined the war a week later, on November 11, 1868.