As early as 1837, the Republic tried many times to ask for annexation with the United States. Texas was finally annexed when James K. Polk won the election of 1844. On December 29, 1845, Congress admitted Texas to the U.S.
After Texas's annexation, Mexico refused to cooperate with the United States. While the United States claimed that Texas's border stretched to the Rio Grande, Mexico claimed it was the Nueces River. While the former Republic of Texas could not enforce its border claims, the United States had the military strength and the political will to do so. President Polk ordered General Zachary Taylor south to the Rio Grande on January 13, 1846. The first battles of the war were fought in Texas: the Siege of Fort Texas, Battle of Palo Alto and Battle of Resaca de la Palma. After these victories, the United States invaded Mexican territory ending the fighting in Texas.