Both Argentina and Mexico share a common history in the fact that both nations were once part of the Spanish Empire. During the Spanish colonial period, Mexico was then known as Viceroyalty of New Spain and the capital being Mexico City while Argentina was at first governed from the Viceroyalty of Peru in Lima and in 1776, Spain created the Viceroyalty of the Río de la Plata where the capital was established in Buenos Aires. In 1810, both Argentina and Mexico declared their independence from Spain with each nation obtaining independence in 1816 and 1821, respectively. The first official diplomatic contract between the newly independent nations was in 1824 when Mexican PresidentGuadalupe Victoria sent a letter to the government of Argentina stating "America has one cause: its unity and independence." In 1880, Argentina sent its first resident consul to Mexico and in 1891, Mexico reciprocated the gesture and sent its first resident consul to Argentina. In May 1914, Mexico and the United States were on the verge of declaring war on each other over the Tampico Affair. At the time Argentina, along with Brazil and Chile belonged to the ABC nations group. In order to prevent war between Mexico and the United States; diplomats from the three South American nations met with officials from Mexico and the United States in Niagara Falls, Canada, to prevent a war between them. The peace conference ended in success and war was adverted. In 1927, Argentina and Mexico elevated their diplomatic missions to that of embassies. Since then, diplomatic relations between the two nations have continued unabated. In 1960, Mexican President Adolfo López Mateos became the first Mexican head-of-state to pay a state visit to Argentina. In 1985, President Raúl Alfonsín was the first Argentine head-of-state to pay an official visit to Mexico. Since then, there have been several presidential visits between both nations respectfully. During the 1970s, Argentina was ruled by military generals which targeted anybody who did not support them. During the Dirty War, several thousand Argentine citizens fled the country and sought asylum in Mexico. In 1982, Argentina and the United Kingdomdeclared war on each other for the Falkland Islands. Mexico remained neutral on Argentina's claims to the islands during the war, however, today it supports Argentina's eventual possession of the islands. Recently both nations have advocated for increased bilateral trade and closer interaction between Mercosur and the Pacific Alliance. In February 2017, Presidents Enrique Peña Nieto and Mauricio Macri held a telephone conversation, in which President Macri highlighted the closeness and friendship between both nations, and expressed Argentina's support for Mexico against the position adopted by the Government of the United States under President Donald Trump towards Mexico.
Both nations have signed numerous bilateral agreements such as an Agreement of Cooperation for the Peaceful Uses of Nuclear Energy; Agreement on the Mutual Recognition for Degrees, Diplomas and Academic Degrees of Higher Education; Agreement on Air Transport; Agreement of Economic Cooperation; Agreement on Economic and Social Planning; Agreement on the Transfer of Convicted Nationals and Compliance with Criminal Sentences; Agreement of Cooperation for the Fight against the Abuse and Illicit Trafficking of Narcotic Drugs and Psychotropic Substances; Agreement for Touristic Cooperation; Agreement for Technical and Scientific Cooperation; Agreement of Cooperation in Cinematographic Co-production; Agreement for the Promotion and Reciprocal Protection of Investments; Agreement to Avoid Double Taxation and Prevent Tax Evasion in Income Tax Matter coming from the operation of Ships and Aircraft in International Transport; Agreement for Cultural and Educational Cooperation; Agreement Concerning Reciprocity in the use of Satellites and the Transmission and reception of signals from satellites for the provision of Satellite Services; Cooperation Treaty on Legal Assistance in Criminal Matters; Extradition Treaty; Agreement of Cooperation, Mutual Administrative Assistance and Exchange of Information in Customs Matters and an Agreement to Avoid Double Taxation and to Prevent Tax Evasion Regarding Taxes on Income and Equity.
Over the years, two-way trade between Argentina and Mexico has increased substantially. In 2018, trade between the two nations totaled US$1.9 billion. Argentina's exports to Mexico include: aluminum, cowhide, medicine and raw minerals. Mexico's exports to Argentina include: automobiles and parts, electronics and chemical based products. Between 1999–2017, Argentine companies invested over US$6 billion in Mexico, making Argentina the 14th largest foreign direct investor in Mexico. Over 34 Argentine companies operate in Mexico with several multinational Argentinian companies operating in Mexico such as Bridas Corporation, Gupo Arcor and Techint. Between 2005–2013, Mexico invested over US$3.8 billion in Argentina. Several multinational Mexican companies operate in Argentina such as América Móvil, Cemex and Grupo Bimbo; among others.