Mexican War of Independence
Although Mexico gained its independence in September 1821, the marking of this historical event did not take hold immediately. The choice of date to celebrate was problematic, because Iturbide, who achieved independence from Spain, was rapidly created Emperor of Mexico. His short-lived reign from 1821–22 ended when he was forced by the military to abdicate. This was a rocky start for the new nation, which made celebrating independence on the anniversary of Iturbide's Army of the Three Guarantees marching into Mexico City in triumph a less than perfect day for those who had opposed him. Celebrations of independence during his reign were marked on September 27. Following his ouster, there were calls to commemorate Mexican independence along the lines that the United States celebrated in grand style its Independence Day on July 4. The creation of a committee of powerful men to mark independence celebrations, the "Junta Patriótica", organized celebrations of both September 16, to commemorate Hidalgo's grito and the start of the independence insurgency, and September 27, to celebrate actual political independence.
Costa Rica–Mexico relations
Costa Rica and Mexico are two Latin American nations that share a common history in the fact that both nations were colonized by the Spanish empire. During Spanish colonization, Costa Rica was under the administration of the Viceroyalty of New Spain in Mexico City. In 1821, Mexico gained independence from Spain and Costa Rica became part of the First Mexican Empire. In 1823, the empire dissolved and Costa Rica, along with El Salvador, Guatemala, Honduras and Nicaragua joined the United Provinces of Central America. In 1838, the union dissolved and Costa Rica became an independent nation. That same year, Costa Rica and Mexico established diplomatic relations.