 In 1813 and 1814 he was a member of the Government Juntas that functioned in that period.When the first President of the independent government, José Miguel Carrera, was elected commander-in-chief of the forces that marched to repel the invasion of General Antonio Pareja, Infante was elected regent of the Government Junta.During his term the junta adopted the national flag, and founded the National institute of science and numerous primary schools throughout the country.