 He served as a private counselor to Gabino Gaínza during his administration of the State of Guatemala, and it is probably due to his influence that the latter did not strenuously oppose the popular movement for liberty.After independence, Gálvez favored annexation of Guatemala to Mexico.When the first federal Congress of Central America met in Guatemala in 1825, he was one of the deputies, and he became president of the Congress.