Home › US History › Expansion and Civil War › Mexican-American War
Expansion and Civil War · Texas, Mexico and the Far West · 1846–1848
The Mexican-American War, 1846–1848
The Mexican-American War began in 1846 over Texas and ended with the United States taking half of Mexico. American armies under Zachary Taylor and Winfield Scott won every major battle and captured Mexico City. In the Treaty of Guadalupe Hidalgo, Mexico gave up California, Nevada, Utah and most of Arizona and New Mexico. The war made the United States a nation from sea to sea, and it set off the fight over slavery that led to the Civil War.
General Scott enters Mexico City, September 14, 1847, painted by Carl Nebel, who traveled in Mexico
Quick facts
The Mexican-American War at a glance
| Dates | April 25, 1846 (first fighting) to February 2, 1848 (peace treaty signed) | |
| Sides | The United States against Mexico | |
| War declared | May 13, 1846, after votes of 174–14 in the House and 40–2 in the Senate | |
| U.S. presidents | James K. Polk; Mexico had several presidents, most famously Antonio López de Santa Anna | |
| Major battles | Palo Alto, Monterrey, Buena Vista, Veracruz, Cerro Gordo, Chapultepec | |
| Deaths | About 13,000 Americans (1,733 killed in battle, the rest from disease) and an estimated 25,000 Mexicans | |
| Peace | Treaty of Guadalupe Hidalgo, signed February 2, 1848; approved by the Senate 38–14 | |
| Result | Mexico gave up about 525,000 square miles and accepted the Rio Grande as the Texas border; the U.S. paid $15 million |
The big picture in 30 seconds
Why the Mexican-American War matters
- It added more than 500,000 square miles to the United States, including California.
- Mexico lost half of its territory, a loss still remembered there today.
- It reopened the question of slavery in the West and helped bring on the Civil War.
- It trained the officers, Grant and Lee among them, who led the Civil War armies.
525,000
square miles taken from Mexico
$15 million
paid to Mexico
~13,000
American deaths, mostly from disease
21 months
of war, 1846–1848
Causes of the war
Texas, Polk and Manifest Destiny
Texas had won its independence from Mexico in 1836, at the Alamo and San Jacinto, but Mexico never accepted it. When the United States annexed Texas in 1845, Mexico broke off relations. The two countries also disagreed about the border. Texas said it ran along the Rio Grande; Mexico said Texas had always ended at the Nueces River, about 150 miles further north.
President James K. Polk, elected in 1844, wanted much more than Texas. Many Americans believed it was their Manifest Destiny, a phrase coined in 1845, to spread across the continent to the Pacific. Polk sent John Slidell to Mexico City to offer up to $25 million for California and New Mexico. Mexico’s government refused even to meet him.
“American blood upon the American soil”
Polk then ordered General Zachary Taylor to march his army into the disputed land and camp on the Rio Grande across from the Mexican town of Matamoros. On April 25, 1846, Mexican cavalry attacked a patrol of American dragoons on the north bank, killing or wounding about 16. Polk told Congress that Mexico had “shed American blood upon the American soil.” Congress declared war on May 13, 1846. Many Whigs voted for it to support the troops, while believing Polk had provoked the fight.

Where it happened
Three armies, one goal
The United States attacked on three fronts. Zachary Taylor pushed south from the Rio Grande into northern Mexico, winning at Palo Alto, Monterrey and Buena Vista. Stephen W. Kearny marched west from Fort Leavenworth, took Santa Fe without firing a shot, and went on to California. There, American settlers had already raised the Bear Flag at Sonoma, and the U.S. Navy seized the ports.
When Mexico still would not make peace, Winfield Scott landed an army at Veracruz in March 1847, the largest American landing from the sea until World War II, and fought his way 250 miles inland to Mexico City, following much the same road the Spanish conqueror Hernán Cortés had taken in 1519.
Simplified map. Red dots mark the battles described on this page.
How the war unfolded
From the Rio Grande to Mexico City
American armies won every major battle of the war.
Taylor’s fast-moving “flying artillery” defeats a larger Mexican army north of the Rio Grande.
The Bear Flag Revolt at Sonoma, the Navy at Monterey, and Kearny’s march into Santa Fe put the Far West in American hands.
Taylor storms the fortified city after three days of street fighting, then agrees to a truce that angers Polk.
About 4,700 Americans hold off Santa Anna’s 15,000 in the mountains. Taylor becomes a national hero.
Scott lands about 10,000 troops by surfboat in a single day and forces the port city to surrender after a siege.
Americans storm the castle of Chapultepec and march into Mexico City the next day.
September 13, 1847
The storming of Chapultepec
The last barrier before Mexico City was Chapultepec, a stone castle on a 200-foot hill that housed Mexico’s military academy. After a day of bombardment, American soldiers carried scaling ladders up the slopes under heavy fire and climbed the walls. A young lieutenant named Thomas J. Jackson, later famous as Stonewall Jackson, won praise for working his guns in the open. The U.S. Marines who fought there remember it in the first line of their hymn, “From the Halls of Montezuma.”
Mexico remembers the battle very differently. Six young cadets of the military academy refused to retreat and died defending the castle. Legend says the last of them wrapped himself in the Mexican flag and leaped from the walls rather than let it be captured. They are honored as the Niños Héroes, the Boy Heroes, with a great monument in Chapultepec Park. On September 14, 1847, Scott rode into the main square of Mexico City as a band played “Yankee Doodle.”
The San Patricios
Among the defenders were the San Patricio Battalion, mostly Irish Catholic immigrants who had deserted the U.S. Army to fight for Mexico. Captured at Churubusco, about 30 of them were hanged within sight of Chapultepec as the castle fell.

Presidents, generals and future Civil War leaders
Who fought the war

Promised to expand the nation and did: Texas, Oregon and the Mexican Cession all came in his single term.

“Old Rough and Ready” won the battles of the north and rode his fame to the White House in 1848.
“Old Fuss and Feathers” planned and led the brilliant campaign from Veracruz to Mexico City.
Mexico’s most famous general of the age. He returned from exile to lead the war and lost it.
Scouted the paths that let Scott outflank Mexican armies. Scott called him the finest soldier he had ever seen.

Fought in almost every major battle, then wrote that the war was “one of the most unjust ever waged.”
Why it mattered
A nation from sea to sea
In the Treaty of Guadalupe Hidalgo, signed February 2, 1848, Mexico accepted the Rio Grande as the border of Texas and gave up the Mexican Cession: all of today’s California, Nevada and Utah, most of Arizona and New Mexico, and parts of Colorado and Wyoming. The United States paid $15 million and took over $3.25 million in debts Mexico owed to Americans. About 80,000 Mexicans living in the region became Americans, though many soon lost their land. Nine days before the treaty was signed, gold had been found at Sutter’s Mill in California. The Gold Rush of 1849 followed.
The new land reopened the fight over slavery. In 1846 Congressman David Wilmot proposed banning slavery in any land taken from Mexico. The Wilmot Proviso never passed the Senate, but it split Congress along North and South lines. The Compromise of 1850 papered over the crisis for a decade. Ralph Waldo Emerson had predicted it: “The United States will conquer Mexico, but it will be as the man swallows the arsenic, which brings him down in turn.”
At home
A war that divided Americans
The war was popular in the South and West and bitterly opposed by many in the North.
The peace
The Treaty of Guadalupe Hidalgo
Polk sent State Department official Nicholas Trist to make peace. When talks dragged, Polk ordered him home. Trist ignored the order, stayed in Mexico and signed a treaty in the village of Guadalupe Hidalgo on February 2, 1848. Polk was furious, but the treaty gave him what he wanted, and he sent it to the Senate, which approved it 38 to 14 on March 10, 1848.
Some Americans had demanded that the United States take all of Mexico. Others, including many Whigs, wanted no land at all. The treaty took the thinly settled north and left the rest. In 1853 the Gadsden Purchase added a strip of land in southern Arizona and New Mexico for a railroad route, setting the border that still exists.

Year by year
The Mexican-American War, 1836–1853
“I do not think there was ever a more wicked war than that waged by the United States on Mexico. I thought so at the time, when I was a youngster, only I had not moral courage enough to resign.”
Ulysses S. Grant
Recalling the war he fought in as a young officer, 1879
The bigger story
Expansion and Civil War, 1820–1879
Our U.S. History era page shows how this fits into the whole story of a growing nation that split over slavery, from the Missouri Compromise to the Civil War and Reconstruction.
Go deeper
Books and sources
- A Wicked War: Polk, Clay, Lincoln, and the 1846 U.S. Invasion of Mexico, by Amy S. Greenberg (2012)
- So Far from God: The U.S. War with Mexico, 1846–1848, by John S. D. Eisenhower (1989)
- The War of a Thousand Deserts, by Brian DeLay (2008)
- More recommended books
