In the 5th year of the latter in 1901, he served as editor of La voz guadalupana along with other distinguished associates, such as Constantino Carvallo, Baltasar Caravedo, Hermilio Valdizán and Pedro Yrigoyen Diez Canseco.
There he became friends with José de la Riva Agüero y Osma, Víctor Andrés Belaúnde, Ventura García Calderón, and many others.
Simultaneously, he worked in the Lima Public Charity Society, and later as a journalist in Illustracion Peruana, Varidades, La Cronica and El Comercio.
In 1911, he won an international competition to select the lyrics for the "Hymn to American Students", Chilean composer Enrique Soro wrote the music for the song (1912).
He was a prominent cultivator of "La Muliza", organizing a lavish carnival with Oscar and Carlos y Néstor Arrieta y Barinaga, who were brothers.
When Commander Luis Sánchez Cerro assumed the presidency of Peru for a second term, Galvez withdrew from politics and returned to journalism.
Following the annulment of the victory of Luis Antonio Eguiguren in the 1936 elections, he resigned his diplomatic post and returned to Peru, departing again from politics.
Among his literary creations, which included prose and poetry, the most famous are- Nuestra pequeña historia, Estampas limeñas, Jardín cerrado, Oda pindárica a Grau y Canto Jubilar a Lima