He took part in the overthrowing of the emperor Maximilian I of Mexico, and in 1867, on the establishment of the republic, was appointed assistant secretary of state for foreign affairs (1868-1872).
In 1873 he became Mexican consul at San Francisco, where he remained till his election to the Senate (1875).
He was professor of jurisprudence at the college of Puebla from 1883 to 1890, when he was again appointed assistant Secretary of Foreign Affairs.
From 1899 until he died in 1905 he served as Mexican ambassador to the United States;[1] he was present at the Pan-American Exposition in 1901, when William McKinley was fatally shot.
He participated in the war council that condemned and executed Emperor Maximilian, Miguel Miramón and Tomás Mejía, after capture by the Liberals, in 1867.