Since the beginning of the 19th century, relations between Spain and Mexico have been in constant tension. The recognition of the independence of Mexico would not take place until 1836 with the signing of the Treaty of Peace and Friendship of Santamaría-Calatrava. This Treaty would bring many more problems than solutions in the relationship of both countries, especially due to the ambiguous situation of Spanish citizens in Mexico and the assumption by Mexico of the part of the Spanish debt corresponding to the former Viceroyalty of New Spain. These two problems undoubtedly constituted the axis on which most of the bilateral relations revolved during the following decades. The problem of the debt of Mexico with Spain tried to be solved from the signing of three Conventions, that of 1847, that of 1851 and finally the Convention on Spanish Claims of 1853 during the government of Santa Anna. The relations between both countries were also mediated by the intervention of other States such as the United States, France and Great Britain that had their own interests and conflicts with Mexico. Relations between Spain and Mexico were especially determined by the internal problems of each country. The first half of the 19th century was marked by constant problems between the two countries, and it was not until the last third of that century that relations between the two countries normalized. After Díaz's triumph, the Madrid government chose to recognize the new government in April 1877. Vallarta hastened to publish in an extraordinary edition of the Official Gazette, in Spanish and English, the recognition of Spain, followed months later by the from other European states.
Desde el comienzo del siglo XIX, las relaciones entre España y México estuvieron en constante tensión. El reconocimiento de la independencia de México no se llevaría a cabo hasta 1836 con la firma del Tratado de Paz y Amistad de Santamaría-Calatrava. Este Tratado traería muchos más problemas que soluciones en la relación de ambos países, sobre todo debido a la ambigua situación de los ciudadanos españoles en México y a la asunción por México de la parte de la deuda española correspondiente al antiguo Virreinato de la Nueva España. Estos dos problemas constituyeron sin duda, el eje sobre el cual giraron en su mayoría las relaciones bilaterales durante las siguientes décadas. El problema de la deuda de México con España trató de ser solucionado a partir de la firma de tres Convenciones, la de 1847, la de 1851 y finalmente la Convención sobre Reclamaciones Españolas de 1853 durante el gobierno de Santa Anna. Las relaciones entre ambos países también fueron mediatizadas por la intervención de otros Estados tales como Estados Unidos, Francia y la Gran Bretaña que tenían sus propios intereses y conflictos con México. Las relaciones entre España y México estuvieron especialmente determinadas por la problemática interna de cada país. La primera mitad del siglo XIX estuvo marcada por los constantes problemas entre ambos países, fue hasta el último tercio de dicho siglo que las relaciones entre ambos países se normalizaron. Tras el triunfo de Díaz, el gobierno de Madrid optó por reconocer al nuevo gobierno en abril de 1877. Vallarta se apresuró a publicar en una edición extraordinaria del Diario Oficial, en español y en inglés, el reconocimiento de España, seguido meses después por los de otros Estados europeos.