 On 7 March 1831, both nations signed a Treaty of Friendship, Trade and Navigation.In 1844, Mexico opened a consulate in Valparaíso.In 1864, during the Second French intervention in Mexico, Chile recognized and maintained diplomatic relations with the government of President Benito Juárez.