Ágreda had fought in the battles of Junin and Ayacucho under Antonio José de Sucre, for which the Grand Marshal rewarded him as commander of the Military College in Chuquisaca.
Ágreda participated in the battles of Junin and Ayacucho during the leadership of Antonio José de Sucre. As a reward, the Grand Marshal appointed Ágreda as the commander of the Military College in Chuquisaca.