 A few years later Caycedo was elected to Congress, appointed Secretary of the Treasury.Caycedo would act as interim president for the six times president José Ignacio de Márquez who would be absent from office for short periods of time.During the presidency of Pedro Alcántara Herrán (1841-1845), Caycedo acted as interim president twice during temporary absences by the president.