The Nauvoo Legion was a state-authorized militia of Nauvoo, Illinois, United States from February 4, 1841, until January 29, 1845. Its main function was the defense of Nauvoo and surrounding Latter Day Saint settlements, but it was also occasionally used as local law enforcement and paraded at ceremonies such as the laying of the cornerstone for the Nauvoo Temple. The Nauvoo Legion was unique among contemporary militias for its chain of command structure, its expanded functions of the court martial, and for operating at a city level.

The Legion's presence was a significant factor in tensions between Nauvoo and its neighbors. The militia received criticism for its loyalty to Joseph Smith, founder of the Latter Day Saint movement and mayor of Nauvoo. In 1843, Legion members controversially helped Smith avoid extradition into Missouri. In 1844, Joseph Smith ordered the Nauvoo Legion to destroy the Nauvoo Expositor newspaper. Smith was charged with inciting a riot and placed in Carthage Jail where he was killed by a mob.

In 1845 the Legion lost its official sanction as an arm of the Illinois militia, though activities continued under command of Brigham Young until the expulsion of the Latter-day Saints from the state. The final conflict in Illinois involving remaining Legion members occurred in September 1846.

Formation in Nauvoo

In 1839, Joseph Smith relocated his followers from a hostile environment in Missouri to Commerce, Illinois, which he renamed Nauvoo. Aiming to win the Mormon voting bloc, Illinois Democrats and Whigs (including Abraham Lincoln) passed a bipartisan city-state charter for Nauvoo in 1840. On December 16, 1840 Governor Thomas Carlin approved the charter, which was certified by then Secretary of State Stephen A. Douglas. A few light cannons were also attached. On March 12, 1842 the growing city of Nauvoo was divided into four military districts (aligning with the four city wards), with four corresponding companies that would comprise the fourth regiment of the second brigade. Historian Harold Schindler argues that the rank of Lieutenant General was granted to Smith by the State of Illinois in exchange for the Latter Day Saint vote in upcoming elections. Brigham Young remarked, "If the war [with Mexico] broke out, he would have become commander-in-chief of the United States armies." Typical American courts-martial are exclusively judicial entities, created to try military personnel in accordance with military law.

On February 8, 1841, in accordance with the city charter, the Nauvoo City Council further expanded the executive power of the court martial to internally nominate officers for original commissions and promotions at a municipal level. Sharp reflected a growing sentiment in Illinois that the combined military and religious Latter Day Saint community posed a threat to the democratic values of individual freedom and separation of church and state, writing, "Every thing they say or do seems to breathe the spirit of military tactics. Their prophet appears, on all great occasions in his splendid regimental dress.... Truly fighting must, be a part of the creed of these Saints!" Joseph Smith III as a boy carried a wooden sword and a banner that read, "Our fathers we respect; our mothers we'll protect."

On December 15, 1841, the Nauvoo Times and Seasons reported the city watch was disbanded and reorganized as a Legion assignment.]]

Reaction to the failed extradition from Missouri was swift and negative. and a "betrayal."]]

Tensions between Nauvoo and surrounding non-Mormon settlements peaked by the summer of 1844, in part because the Legion came to be regarded as Smith's private army.

Acting as Lieutenant General, Smith ordered Major General Jonathan Dunham to use the Legion to assist the city marshal. Non-Mormons claimed the Legion was instrumental in destroying the press and called for the arrest of Smith and other members of the city council for riot. Ford called off most of the Illinois militia and recalled state-issued arms in Nauvoo. Brigham Young began to take on the roles Joseph Smith previously had, and on August 31, 1844 he was elected as the Legion's "Lieutenant General". Previously, Young had been an assistant chaplain. Distributed flyers invited all armed men to participate in a “wolf hunt” in Warsaw on September 26 and 27.

upright=1.3|thumb|Fife owned by Elisha Averett of the Nauvoo Legion band, which performed during parades and military drills.

Whistling and Whittling Brigade

With the repeal of the Nauvoo Charter, the city was left without an official militia or police force.

In response, in March 1845 Brigham Young organized the Bishops and Deacons to 1) "take care of the poor" and 2) guard the city at night, to keep everything straight.” While plans for an official arsenal had been discussed since at least June 10, 1843, it was not until September 16, 1844 that Lieutenant General Brigham Young dedicated a site near the temple "to the God of the armies of Israel" and broke ground. Prior to this point, the Nauvoo Masonic Hall had been used as a commissary and to store arms. Construction of the arsenal, in connection with construction of a gunsmith's shop and a powder magazine, continued despite the repeal of the Nauvoo Charter and the recall of state-issued arms.

The arsenal was funded in part through non-attendance fines. Records in the Nauvoo Legion Arsenal Account book indicate that local merchants were sometimes paid to procure and ship arms and ammunition for the Legion.