Skip to main content

Kearny Code

The Kearny Code was a set of laws General Stephen W. Kearny put in place in New Mexico in 1846 after the U.S. takeover. It blended American legal control with some local Mexican customs to keep order during the transition to U.S. rule.

Last updated July 2026•Fiveable Content Team

What is the Kearny Code?

The Kearny Code was the early legal framework General Stephen W. Kearny introduced in New Mexico after U.S. forces occupied the territory during the Mexican-American War. In plain terms, it was the first attempt to replace Mexican government structures with an American system while avoiding total disruption for local residents.

What makes the Kearny Code stand out in New Mexico History is that it was not a simple copy of U.S. law. Kearny and his administrators tried to mix American legal principles with familiar local practices, especially in areas like property rights and civil order. That mattered in a territory with a large Hispano population that already had its own traditions, land practices, and local leadership networks.

The code had a practical goal: keep New Mexico stable while the United States was still fighting the war and deciding what to do with the territory. Military occupation alone does not create a working government, so the code gave officers and residents a basic legal structure to follow. That helped reduce confusion about courts, property, and authority in a moment when the old Mexican system had been displaced but the new U.S. system was not fully established yet.

For students, the Kearny Code is a good example of how conquest and governance are connected. The U.S. did not just seize land, it also had to manage daily life in a new place with different languages, laws, and customs. The code shows that American expansion in New Mexico was not only about battles and treaties, but also about legal control, compromise, and adaptation.

It also helps explain why New Mexico’s transition into the United States was more complicated than a simple flag change. Some residents saw the code as a workable compromise, while others criticized it for not fully respecting their rights or for representing military rule. That tension shows up again later in New Mexico's political development and in the debates over how local identity fit into U.S. rule.

Why the Kearny Code matters in New Mexico History

The Kearny Code matters because it shows how New Mexico shifted from Mexican rule to U.S. control in a real, everyday way. A war changes borders, but people still need courts, property protection, and some idea of who has authority. This code is one of the clearest examples of that transition.

It also gives you a lens for reading other parts of New Mexico History. When you study the Mexican-American War, the Treaty of Guadalupe Hidalgo, or later debates over territorial government, the Kearny Code shows the messy in-between stage. It was not a final constitution, but it shaped the way New Mexico was governed after conquest.

The term also helps you see why Hispanic residents and Anglo newcomers often had different reactions to U.S. rule. Some parts of the code tried to preserve stability by recognizing local customs, but that did not erase conflict over land, power, or identity. If a question asks why early U.S. rule in New Mexico was tense but not immediately chaotic, this code is a big part of the answer.

Keep studying New Mexico History Unit 6

How the Kearny Code connects across the course

Mexican-American War

The Kearny Code came out of the U.S. military occupation during the Mexican-American War. If you are tracing the shift in authority, the war explains why New Mexico suddenly needed a new legal system. The code is one of the occupation-era policies that turned battlefield victory into territorial control.

Treaty of Guadalupe Hidalgo

The treaty formally ended the war and confirmed the U.S. acquisition of New Mexico, but the Kearny Code came earlier, while the transition was still unsettled. That makes the code useful for showing the gap between conquest and official peace. It captures how U.S. rule started before the final treaty language was in place.

General Kearny

General Stephen W. Kearny is the person behind the code, so the term is tied to his military and political role in New Mexico. When you see his name in the course, think of both conquest and administration. He was not just a battlefield figure, he also helped set up the early territorial government.

Hispano Contributions

The Kearny Code reflects the need to work with Hispano communities already living under Spanish and Mexican traditions. Its mix of U.S. law and local customs shows that New Mexico’s history was shaped by cultural adaptation, not one-sided replacement. That connection is useful when the course asks how local people influenced territorial development.

Is the Kearny Code on the New Mexico History exam?

On a quiz or short-answer prompt, you might be asked to identify the Kearny Code as the early legal system used after the U.S. occupied New Mexico in 1846. In an essay, use it to explain how conquest affected government, property rights, and daily life, not just military control. If a question asks why New Mexico’s transition to U.S. rule was complicated, mention that the code blended American authority with some local customs to keep order. A strong response usually connects it to the Mexican-American War and the Treaty of Guadalupe Hidalgo.

The Kearny Code vs Treaty of Guadalupe Hidalgo

These are related but not the same. The Kearny Code was an early set of laws used during U.S. occupation of New Mexico in 1846, while the Treaty of Guadalupe Hidalgo was the later agreement that officially ended the Mexican-American War and confirmed the U.S. cession of New Mexico. One is about immediate governance, the other is about formal peace and transfer of territory.

Key things to remember about the Kearny Code

  • The Kearny Code was an early legal system created by General Stephen W. Kearny after the U.S. occupied New Mexico in 1846.

  • It mixed U.S. legal control with some local customs so the territory could stay orderly during a major political transition.

  • The code mattered because New Mexico needed courts, property rules, and authority even while the war and occupation were still underway.

  • It shows that U.S. expansion was not just military conquest, it also involved building a new government on top of an existing society.

  • The Kearny Code helps explain why New Mexico’s move from Mexican rule to U.S. rule involved compromise, tension, and gradual change.

Frequently asked questions about the Kearny Code

What is the Kearny Code in New Mexico History?

The Kearny Code was a set of laws General Stephen W. Kearny put in place when the U.S. occupied New Mexico in 1846. It created an early legal structure for the territory and blended American rule with some local customs. In New Mexico History, it marks the start of U.S. civil governance after conquest.

Why was the Kearny Code created?

It was created to keep order after the U.S. took control of New Mexico during the Mexican-American War. Military occupation by itself does not solve everyday problems like property disputes, courts, or local authority. The code gave people a framework to follow while the territory was changing hands.

How was the Kearny Code different from regular U.S. law?

It was not a full, settled state legal system. Instead, it adapted U.S. authority to New Mexico’s local conditions and recognized some Mexican and Hispano customs. That compromise made it easier to govern immediately, even if it did not satisfy everyone.

How do you use the Kearny Code in an essay?

Use it as evidence that New Mexico’s transition into the United States was gradual and complicated. It works well in paragraphs about the Mexican-American War, territorial rule, or conflicts over land and rights. If you mention it clearly, it shows you understand how conquest turned into government.