The origins of the Mexican-American War can largely be traced back to Texas winning its independence from Mexico in 1836. Following his defeat at the Battle of San Jacinto (4/21/1836), Mexican General Antonio López de Santa Anna was captured and forced to recognize the sovereignty of the Republic of Texas in exchange for his freedom. The Mexican government, however, refused to honor Santa Anna’s agreement, stating that he was not authorized to make such a deal and that it still considered Texas a province in rebellion.
Any thoughts the Mexican government had of recovering the territory quickly were eliminated when the new Republic of Texas received diplomatic recognition from the United States, Great Britain, and France.