The United States declared war on Mexico.