What was the Mexican War?

The Mexican war was a war between Mexico and America. The Mexicans were wanting their independence. In 1848 the border was created. This war took place between 1846 and 1848.