Mexico recognized the newly independent Slovenia on 22 May 1992. Diplomatic relations were established on the same day when former Slovenian President Milan Kučan and former Mexican PresidentCarlos Salinas de Gortari exchanged official letters. In 1996, Mexico opened an honorary consulate in Ljubljana. In 1998, Slovenian Ambassador, Dimitrij Rupel, declared that there are deep bilateral relations between his country and Mexico, and that Slovenia will support Mexico in any international forum, since Mexico is part of the North American Free Trade Agreement, which provides opportunities to increase commerce and investments between Slovenia and North America. In October 1998, Prime Minister Janez Drnovšek became the first Slovene head of state to visit Mexico. In August 2003, both nations participated in the Mixed Commission for Cooperation in the fields of Education and Culture. Both sides underlined that the session of the Mixed Commission presented a good opportunity for the establishment of foundations for mutual relations in the fields of education, science, culture and sport, as well as for reflection on the role of international co-operation as a factor for social change and as an essential means for the realisation of global and sustainable development of countries. To this end, the signatories started a programme of cooperation for the period 2003 to 2007, in which the two countries agreed on mutual collaboration in the fields of primary, secondary, post-secondary and higher education; scholarship and residential exchange programmes. In May 2006, former Mexican President Vicente Fox met with former Slovene Prime Minister Janez Janša in Vienna, where both leaders were attending the IV Latin America, the Caribbean and the European Union Summit. In December 2007, Foreign MinisterPatricia Espinosa Cantellano became the high-level Mexican official to visit Slovenia and she met with Slovenian Prime Minister Janez Janša.
Both nations have signed a few bilateral agreements such as an Agreement on Educational and Cultural Cooperation and a Memorandum of Understanding for the Establishment of a Mechanism of Consultation in Matters of Mutual Interest.
Trade
In 1997, Mexico signed a Free Trade Agreement with the European Union. In 2017, two-way trade between both nations amounted to $164 million USD. Mexico's exports to Slovenia include: chemicals, automobile parts, tequila and beer; while Slovenia's main exports to Mexico include: automobile and machinery parts and computer wires. Eleven Slovenian companies currently operate in Mexico. Slovenia is the 26th biggest foreign direct investor to Mexico from the European Union.
Non-resident diplomatic missions
Mexico is accredited to Slovenia from its embassy in Vienna, Austria and has an honorary consulate in Ljubljana.
Slovenia is accredited to Mexico from its embassy in Washington, D.C.; United States, and has an honorary consulate in Mexico City.