<Tr> <Td> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> </Td> </Tr> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> <P> The Mexican--American War, also known as the Mexican War in the United States and in Mexico as the American intervention in Mexico, was an armed conflict between the United States of America and the United Mexican States (Mexico) from 1846 to 1848 . It followed in the wake of the 1845 American annexation of the independent Republic of Texas . Mexico had considerable instability under the caudillo leadership of President / General Antonio López de Santa Anna, with many constitutional changes leading up to the conflict . Mexico still considered Texas to be its northeastern province and a part of its territory, and did not recognize the Republic of Texas, which had seceded from Mexico in the 1836 Texas Revolution a decade earlier . In 1845, newly elected U.S. President James K. Polk sent troops to the disputed area, and a diplomatic mission to Mexico . After Mexican forces attacked American forces, Polk cited this in his request that Congress declare war . </P> <P> U.S. forces quickly occupied the capital town of Santa Fe de Nuevo México along the upper Rio Grande and the Pacific coast territory province of Alta California (Upper California). They then invaded to the south into parts of central Mexico (modern - day northeastern Mexico and northwest Mexico). Meanwhile, the Pacific Squadron of the United States Navy conducted a blockade and took control of several garrisons on the Pacific coast farther south in lower Baja California Territory . The U.S. Army, under the command of Major General Winfield Scott, after several fierce battles of stiff resistance from the Mexican Army outside of the capital, Mexico City, eventually captured the city, having marched west from the port of Veracruz, where the Americans staged their first amphibious landing on the Gulf of Mexico coast . </P>

The united states gained control of texas after armed conflict with the forces of