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.
Presidency of James K. Polk
The United States had been the first country to recognize Mexico's independence following the Mexican War of Independence, but relations between the two countries began to sour in the 1830s. In the 1830s and 1840s, the United States, like France and Britain, sought a reparations treaty with Mexico for various acts committed by Mexican citizens and authorities, including the seizure of American ships. Though the United States and Mexico had agreed to a joint board to settle the various claims prior to Polk's presidency, many Americans accused the Mexican government of acting in bad faith in settling the claims. For its part, Mexico believed that the United States sought to acquire Mexican territory, and believed that many Americans filed specious or exaggerated claims. The already-troubled Mexico–United States relations were further inflamed by the possibility of the annexation of Texas, as Mexico still viewed Texas as an integral part of their republic. Additionally, Texas laid claim to all land north of the Rio Grande River, while Mexico argued that the more northern Nueces River was the proper Texan border. Though the United States had a population more than twice as numerous and an economy thirteen times greater than that of Mexico, Mexico was not prepared to give up its claim to Texas, even if it meant war.