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.

Painting of General Winfield Scott and American troops entering the main square of Mexico City in September 1847

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

DatesApril 25, 1846 (first fighting) to February 2, 1848 (peace treaty signed)
SidesThe United States against Mexico
War declaredMay 13, 1846, after votes of 174–14 in the House and 40–2 in the Senate
U.S. presidentsJames K. Polk; Mexico had several presidents, most famously Antonio López de Santa Anna
Major battlesPalo Alto, Monterrey, Buena Vista, Veracruz, Cerro Gordo, Chapultepec
DeathsAbout 13,000 Americans (1,733 killed in battle, the rest from disease) and an estimated 25,000 Mexicans
PeaceTreaty of Guadalupe Hidalgo, signed February 2, 1848; approved by the Senate 38–14
ResultMexico 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

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.

Painting of the Battle of Buena Vista in 1847 with mountains behind the armies
The Battle of Buena Vista, February 23, 1847, by Carl Nebel. Taylor’s outnumbered army held off Santa Anna.
John L. O’Sullivan, 1845
“Manifest Destiny”
The editor wrote of “our manifest destiny to overspread the continent allotted by Providence for the free development of our yearly multiplying millions.”
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.

The Mexican-American War, 1846–1848
Santa FeFt. LeavenworthSonomaLos AngelesCorpus ChristiPueblaTampicoPalo AltoMonterreyBuena VistaVeracruzMexico CitySan PasqualMEXICAN CESSION, 1848TEXASMEXICOUNITED STATESPacific OceanGulf of Mexico
Mexican Cession, 1848Texas, annexed 1845Disputed land, Nueces to Rio GrandeGadsden Purchase, 1853
Taylor, 1846–1847Scott, 1847Kearny, 1846

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.

1. May 8–9, 1846
Palo Alto and Resaca de la Palma

Taylor’s fast-moving “flying artillery” defeats a larger Mexican army north of the Rio Grande.

2. June–Aug. 1846
California and New Mexico

The Bear Flag Revolt at Sonoma, the Navy at Monterey, and Kearny’s march into Santa Fe put the Far West in American hands.

3. Sept. 21–24, 1846
Monterrey

Taylor storms the fortified city after three days of street fighting, then agrees to a truce that angers Polk.

4. Feb. 22–23, 1847
Buena Vista

About 4,700 Americans hold off Santa Anna’s 15,000 in the mountains. Taylor becomes a national hero.

5. March 1847
Veracruz

Scott lands about 10,000 troops by surfboat in a single day and forces the port city to surrender after a siege.

6. Sept. 13–14, 1847
Chapultepec and Mexico City

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.

Painting of American troops storming the hilltop castle of Chapultepec in 1847
The storming of Chapultepec, September 13, 1847.
Mexico remembers
Los Niños Héroes
Every September 13, Mexico honors the six cadets who died at Chapultepec. Their faces appeared on Mexican money for decades.
Presidents, generals and future Civil War leaders

Who fought the war

Portrait of James K. Polk
James K. Polk
1795–1849
President of the United States

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

Read more →
Portrait of Zachary Taylor
Zachary Taylor
1784–1850
Major general

“Old Rough and Ready” won the battles of the north and rode his fame to the White House in 1848.

Read more →
Portrait of Winfield Scott
Winfield Scott
1786–1866
Commanding general

“Old Fuss and Feathers” planned and led the brilliant campaign from Veracruz to Mexico City.

Portrait of Antonio López de Santa Anna
Antonio López de Santa Anna
1794–1876
President of Mexico

Mexico’s most famous general of the age. He returned from exile to lead the war and lost it.

Portrait of Robert E. Lee
Robert E. Lee
1807–1870
Captain of engineers

Scouted the paths that let Scott outflank Mexican armies. Scott called him the finest soldier he had ever seen.

Read more →
Portrait of Ulysses S. Grant
Ulysses S. Grant
1822–1885
Lieutenant

Fought in almost every major battle, then wrote that the war was “one of the most unjust ever waged.”

Read more →
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.”

1848
war hero Zachary Taylor elected president
1849
the California Gold Rush
1850
the Compromise of 1850
1853
Gadsden Purchase completes the border
At home

A war that divided Americans

The war was popular in the South and West and bitterly opposed by many in the North.

December 22, 1847Lincoln’s “Spot Resolutions”
A first-term Whig congressman from Illinois, Abraham Lincoln, demanded that Polk name the exact spot where American blood had been shed, suggesting it was really Mexican soil.
1846Thoreau goes to jail
Henry David Thoreau spent a night in jail for refusing to pay a tax that supported the war, and wrote his famous essay “Civil Disobedience.”
August 1846The Wilmot Proviso
Northern congressmen tried to ban slavery in all land won from Mexico. Southern senators blocked it, and the battle lines of the 1850s were drawn.
1846–1848A school for generals
Grant, Lee, Jefferson Davis, Stonewall Jackson, Longstreet, McClellan and Meade all fought in Mexico. Fifteen years later they led the armies of the Civil War.
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.

Map of the land Mexico gave up to the United States in 1848, known as the Mexican Cession
The Mexican Cession of 1848 (with the later Gadsden Purchase), set against today’s states.
What Mexico lost
About half its territory
Counting Texas, Mexico lost about 55 percent of its land in the 1840s. Today the Mexican Cession alone is home to more than 50 million people.
Year by year

The Mexican-American War, 1836–1853

1836
Texas wins independence from Mexico at San Jacinto.
Nov. 1844
James K. Polk is elected on a platform of expansion.
Dec. 29, 1845
Texas becomes the 28th state.
April 25, 1846
Mexican cavalry attack U.S. dragoons north of the Rio Grande.
May 8–9, 1846
Battles of Palo Alto and Resaca de la Palma.
May 13, 1846
Congress declares war.
June 14, 1846
The Bear Flag Revolt in California.
Aug. 18, 1846
Kearny occupies Santa Fe.
Sept. 1846
Taylor captures Monterrey.
Feb. 23, 1847
Battle of Buena Vista.
March 9, 1847
Scott lands at Veracruz.
Sept. 13–14, 1847
Chapultepec falls; Americans enter Mexico City.
Jan. 24, 1848
Gold found at Sutter’s Mill, California.
Feb. 2, 1848
Treaty of Guadalupe Hidalgo signed.
1853
The Gadsden Purchase.

“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

Keep exploring

More from Expansion and Civil War