The Kearny Code is a legal code named after General Stephen W. Kearny. The Kearny Code was promulgated in Santa Fe, New Mexico on September 22, 1846 for use in the New Mexico Territory, as occupied by the United States Army during the U.S.-Mexican War. Four days later General Kearny left for Alta California.
The code was prepared by Colonel A. W. Doniphan, of the first regiment of Missouri mounted volunteers, who received significant assistance from Private Willard P. Hall, of his regiment. The code was based on the Bill of Rights and laws of Missouri, with amendations from the laws of Coahuila y Tejas, and the Livingston Code.
The Kearny Code became the basis of New Mexico law. It was submitted to Congress along with the Organic Act creating the Territory of New Mexico. It was amended by the territorial legislature, and after statehood by the state legislature, but many of the provisions remain substantially unchanged today (2007).
The promulgation consisted of three parts, a Bill of Rights, a list of appointments to civil offices in the territory of New Mexico, and Laws for the Government of the Territory of New Mexico. The Bill of Rights did not distinguish between citizens and non-citizens, but granted rights to all persons. It contained most of the safeguards of the United States Bill of Rights and others from Missouri. The laws were mostly verbatim from a copy of the Missouri statutes that Private Hall, who was a Missouri attorney, had in his saddlebags.