 His death sentence was commuted in exchange for his service to the royal army.As a prisoner of war, he was assigned to the cobblestone duty of the "Plaza Mayor de Bogotá" and in the shooting squadron to execute insurgent leaders.On 28 June 1819, López was promised his freedom after his aunt Eusebia Caicedo intervened on his behalf.