Join the list

The Battle of Chapultepec, 1847: the castle above Mexico City

Mexican-American War · 12 to 13 September 1847 · United States vs Mexico · ~5 min read · Updated October 2026

James Walker's painting The Storming of Chapultepec

At a glance

United StatesMaj. Gen. Winfield Scott; Maj. Gen. Gideon Pillow; Maj. Gen. John A. Quitman
vs
MexicoGen. Antonio López de Santa Anna; Gen. Nicolás Bravo; Lt. Col. Felipe Santiago Xicoténcatl
Date
12 to 13 September 1847
Location
Chapultepec Castle, on the western edge of Mexico City
Period
Mexican-American War, campaign for Mexico City
Outcome
American victory; Mexico City occupied on 14 September
By the numbers
SideStrengthLosses
United StatesAbout 2,000 in the storming columns, from an army of about 7,000 near the cityBy one count about 140 killed and about 670 wounded; figures vary between sources
MexicoFewer than 1,000 at the castle, about 830 by one count, including academy cadetsNot reliably known; one estimate gives about 200 killed and several hundred wounded or captured

Strengths and losses vary between American and Mexican sources.

Quick answer

The Battle of Chapultepec was fought on 12 and 13 September 18471, near the end of the Mexican-American War. Chapultepec Castle stood on a hill on the western approach to Mexico City and housed the Mexican military academy. General Winfield Scott's army bombarded it all day on 12 September, and on the morning of 13 September stormed the hill with scaling ladders. The garrison of fewer than a thousand men under General Nicolás Bravo, including cadets of the academy, was overwhelmed within a couple of hours. American troops then fought their way to the city gates, and Mexico City was occupied the next day. Mexico honours six of the dead defenders as the Niños Héroes.

In September 1847 an American army stood at the gates of Mexico City. Between it and the capital rose a rocky hill crowned by a castle, once a viceroy's residence and now Mexico's military academy. Its defenders included teenage cadets, and Mexicans still remember them as the Niños Héroes, the boy heroes.

The road to Mexico City

The war between the United States and Mexico began in 1846, after the American annexation of Texas and a dispute over its border. In March 1847 General Winfield Scott landed at Veracruz and marched inland2, winning at Cerro Gordo and, in August, at Contreras and Churubusco on the edge of the Valley of Mexico. After a failed armistice, his troops took the Molino del Rey, at the foot of Chapultepec, on 8 September at heavy cost.

1848 survey map of Mexico City and its southern and western approaches with troop routes
Survey of Scott's operations in the Valley of Mexico in August and September 1847, from Contreras and Churubusco to Molino del Rey and Chapultepec, made by William Turnbull and George B. McClellan and published in 1848. Library of Congress. Public domain

The castle on the hill

Chapultepec Castle stood on a hill about 60 metres high, surrounded by a wall, guarding the western causeways into the city. Built as a residence, it had become the home of the Colegio Militar, Mexico's military academy. General Antonio López de Santa Anna, unsure where the Americans would strike, kept much of his army to the south, leaving General Nicolás Bravo with fewer than a thousand men, among them the San Blas Battalion under Lieutenant Colonel Felipe Santiago Xicoténcatl and a few dozen cadets who had refused to leave their school1.

Hand-coloured lithograph of a castle on a rocky wooded hill above an arched wall
The Military College on the hill of Chapultepec behind its outer wall, a hand-coloured lithograph published by Nathaniel Currier around 1847 from a sketch sent home by an American officer. Library of Congress. Public domain

The storming

American guns pounded the castle throughout 12 September. On the morning of 13 September the infantry attacked from the west and south, with storming parties that included U.S. Marines. The assault stalled while the men waited for scaling ladders, and General Pillow was wounded3, but the columns reached the walls, climbed them and broke in. The San Blas Battalion fought at the foot of the hill until most of its men, Xicoténcatl among them, had fallen. By about 9:30 am Bravo had been captured1 and the American flag flew over the castle. Nearby, some thirty captured members of the Saint Patrick's Battalion1, deserters from the U.S. Army who had fought for Mexico, were hanged as the flag went up.

Lithograph of American infantry climbing the slope and walls of Chapultepec castle in smoke
Pillow's division storming the castle with scaling ladders on 13 September 1847, a lithograph after Carl Nebel from The War between the United States and Mexico Illustrated, 1851. Public domain
A few hundred soldiers and cadets held a hilltop school against an army, and Mexico has never forgotten them.

The Niños Héroes, history and legend

Six of the defenders who died are honoured in Mexico as the Niños Héroes: Lieutenant Juan de la Barrera and the cadets Agustín Melgar, Juan Escutia, Vicente Suárez, Francisco Márquez and Fernando Montes de Oca, aged roughly 13 to 20. According to tradition, the last of them, Juan Escutia, wrapped himself in the Mexican flag and leapt from the castle rather than let it be captured. Historians debate many details: there is little contemporary evidence for the flag story, Escutia may not have been a cadet at all, and the heroic narrative was promoted by later governments. Their courage is nonetheless commemorated each year on 13 September and by a great monument in Chapultepec Park.

White marble monument with six tall columns around a central sculpture
The Altar a la Patria in Chapultepec Park, the monument to the Niños Héroes completed in 1952, with six columns for the six fallen defenders. rutlo, CC BY 2.0

Into the city, and the cost of the war

The same afternoon American troops fought their way to the Belén and San Cosme gates; at San Cosme a young lieutenant named Ulysses S. Grant hauled a mountain howitzer into a church belfry4. Santa Anna withdrew in the night, and on 14 September Scott's army occupied Mexico City1. The Treaty of Guadalupe Hidalgo in 1848 forced Mexico to cede roughly half of its territory, counting Texas5. The Marines' Hymn still opens with "the halls of Montezuma", while in Mexico the war is remembered as a foreign invasion; Grant himself later called it one of the most unjust wars ever waged by a stronger nation4 against a weaker one.

Frequently asked questions

When was the Battle of Chapultepec?

The castle was bombarded on 12 September 1847 and stormed on the morning of 13 September; Mexico City was occupied on 14 September.

Who won the Battle of Chapultepec?

The United States. General Winfield Scott's troops captured the castle and then entered Mexico City.

Who were the Niños Héroes?

Six defenders of Chapultepec who died in the battle, Lieutenant Juan de la Barrera and the cadets Agustín Melgar, Juan Escutia, Vicente Suárez, Francisco Márquez and Fernando Montes de Oca, honoured in Mexico as national heroes.

Did a cadet really jump with the Mexican flag?

That is the tradition about Juan Escutia, but historians question it: there is little contemporary evidence for the story, and some argue Escutia was a soldier rather than a cadet.

What are the halls of Montezuma?

The opening words of the Marines' Hymn, recalling the part played by U.S. Marines in the storming of Chapultepec and the capture of Mexico City.

Sources and notes

Numbered notes in the text point to the works below.

  1. Encyclopaedia Britannica, “Battle of Chapultepec” ↩ a b c d e
  2. Timothy J. Henderson, A Glorious Defeat: Mexico and Its War with the United States (Hill and Wang, 2007). ↩
  3. K. Jack Bauer, The Mexican War, 1846-1848 (Macmillan, 1974). ↩
  4. Ulysses S. Grant, Personal Memoirs of U. S. Grant, Vol. 1 (1885), chapter III (the war as one of the most unjust) and chapter XI (the howitzer in the church belfry near the San Cosme gate). ↩ a b
  5. U.S. National Archives, “Treaty of Guadalupe Hidalgo (1848)” ↩
  6. Wikipedia, “Battle of Chapultepec”
  7. Wikipedia, “Niños Héroes”

Command the assault on Chapultepec

Echoes of Battle brings the great battles of history to life, scene by scene on the real map. Join the list to be first when it launches.

Or support the app on Ko-fi ›