• Subscribe Now
  • Today In History
  • Wars & Events
    • The Russia–Ukraine War
    • American Revolution
    • The Civil War
    • World War I
    • World War II
    • Cold War
    • Korean War
    • Vietnam War
    • Global War on Terror
    • Movements
      • Women’s Rights
      • Civil Rights
      • Abolition of Slavery
  • Famous People
    • U.S. Presidents
    • World Leaders
    • Military Leaders
    • Outlaws & Lawmen
    • Activists
    • Artists & Writers
    • Celebrities
    • Scientists
    • Philosophers
  • Eras
    • Modern Era
      • 2000s
      • 1900s
      • 1800s
    • Early Modern
      • 1700s
      • 1600s
      • 1500s
    • The Middle Ages
    • Classical Era
    • Prehistory
  • Topics
    • Black History
    • Slavery
    • Women’s History
    • Prisoners of War
    • Firsthand Accounts
    • Technology & Weaponry
    • Aviation & Spaceflight
    • Naval & Maritime
    • Politics
    • Military History
    • Art & Literature
    • News
    • Entertainment & Culture
    • Historical Figures
    • Photography
    • Wild West
    • Social History
    • Native American History
  • Magazines
    • American History
    • America’s Civil War
    • Aviation History
    • Civil War Times
    • Military History
    • Military History Quarterly
    • Vietnam
    • Wild West
    • World War II
  • Newsletters
  • Podcasts
  • Privacy Policy
  • Terms of Service
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Skip to content
  • Privacy Policy
  • Terms of Service
  • Facebook
  • Twitter
  • Instagram
  • YouTube
HistoryNet

HistoryNet

The most comprehensive and authoritative history site on the Internet.

  • Subscribe Now
  • Today In History
  • Wars & Events
    • The Russia–Ukraine War
    • American Revolution
    • The Civil War
    • World War I
    • World War II
    • Cold War
    • Korean War
    • Vietnam War
    • Global War on Terror
    • Movements
      • Women’s Rights
      • Civil Rights
      • Abolition of Slavery
  • Famous People
    • U.S. Presidents
    • World Leaders
    • Military Leaders
    • Outlaws & Lawmen
    • Activists
    • Artists & Writers
    • Celebrities
    • Scientists
    • Philosophers
  • Eras
    • Modern Era
      • 2000s
      • 1900s
      • 1800s
    • Early Modern
      • 1700s
      • 1600s
      • 1500s
    • The Middle Ages
    • Classical Era
    • Prehistory
  • Topics
    • Black History
    • Slavery
    • Women’s History
    • Prisoners of War
    • Firsthand Accounts
    • Technology & Weaponry
    • Aviation & Spaceflight
    • Naval & Maritime
    • Politics
    • Military History
    • Art & Literature
    • News
    • Entertainment & Culture
    • Historical Figures
    • Photography
    • Wild West
    • Social History
    • Native American History
  • Magazines
    • American History
    • America’s Civil War
    • Aviation History
    • Civil War Times
    • Military History
    • Military History Quarterly
    • Vietnam
    • Wild West
    • World War II
  • Newsletters
  • Podcasts
Posted inStories

The Code of the West: Unwritten and Baffling

Does the Code represent frontier justice or Hollywood hokum?
by Gregory Lalire6/1/20082/7/2024
Share This Article

The August 2008 issue of Wild West is chock full of stories dealing with frontier justice, and that naturally calls to mind a concept that has long baffled me—the Code of the West. One gentleman from the East, where we apparently have no code, told me that the Code of the West is synonymous with frontier justice. The thing is, on the 19th-century frontier, nobody wrote the code down, so it has been subjected to many interpretations through the years. One military history buff from New York suggested that the Code of the West was merely another version of the 16th-century Samurai code that stressed loyalty, fighting ability and honor until death. A woman from Virginia told me the Code of the West really didn’t blossom until the 20th century, and what did it were the writings of Owen Wister (The Virginian) and Zane Grey (one of his many novels was called Code of the West) and the Hollywood Westerns. Does that mean the fictionalized Code of the West is something different than the actual frontier Code of the West or just a romanticized extension of the real thing? And was the real thing just something for gunmen to follow or did it extend to the general frontier population, including women?

Sorry, I could find no easy answers. The Code could be about murder or about manners. It might mean all or none of the following: Not shooting an unarmed man or an unwarned enemy; facing off with an adversary and letting him draw first (fair play, giving him a fighting chance); having the right to shoot in self-defense even if merely threatened; the right to hang horse thieves; being loyal (to a friend or to a “brand”); being honest (a handshake was as good as a written contract, bills and debts must always be paid), being self reliant but also being there when a friend needed you; respecting women (and certainly never shooting them), showing hospitality (at home or in camp, sharing your food and giving shelter); not asking too many questions (inquiring about someone’s past was impolite, not to mention potentially dangerous); always doing the right thing (“a man’s gotta do what a man’s gotta do”); valuing the trees, the mountains and the rest of the environment (the natural beauty of the West); believing in God and the Golden Rule; not saying much but always meaning what you say; never selling guns, whiskey or women to American Indians. More baffled then ever, I turned to two esteemed Western historians.

Bob DeArment has a few things to say about the Code of the West in an upcoming biography of gunfighter Ben Daniels that he is writing with Jack DeMattos. “Thieves who stole horses and mules from ordinary folks in the West were considered the lowest form of human vermin and, according to that unwritten Code, were often harshly punished, and sometimes lynched,” DeArment writes. When it came to man killing man with guns and knives, the Code also came into play: “The right of self-protection when attacked was a legal defense, but the Code carried this concept one step beyond. Since little or no law enforcement was present in the new Western settlements, each man was responsible for his own protection. Therefore the mere threat on a man’s life, voiced in public, was considered just grounds for the threatened individual to kill his enemy at the first opportunity.” DeArment adds that part of the Code was to take the measure of a man based on his courage and brave deeds now rather than any past transgressions.

Paul Andrew Hutton took a broader look at the Code of the West. “I think it evolved in the 19th century from the Southern concept of honor and dueling,” the University of New Mexico history professor said. “We see it in law (in Texas) and what Richard Maxwell Brown labeled (also the title of his 1994 book) No Duty to Retreat. And we see it reaching its literary zenith with Wister’s The Virginian at the turn of the last century. Movies, pulps, TV follow.” Gene Autry, Roy Rogers and Hopalong Cassidy all had their own versions of the Code, written down and designed mainly for children. I personally like Bret Maverick’s version of the code as passed down to him from his Pappy: “You can be a gentleman and still not forget everything you know about self-defense.”

Share This Article
by Gregory Lalire

more by Gregory Lalire

    Dive deeper

    • Gunfighters & Lawmen
    • Law
    • Letter from the Editor

    Citation information

    Gregory Lalire (7/14/2025) The Code of the West: Unwritten and Baffling. HistoryNet Retrieved from https://www.historynet.com/letter-from-wild-west-august-2008/.
    "The Code of the West: Unwritten and Baffling."Gregory Lalire - 7/14/2025, https://www.historynet.com/letter-from-wild-west-august-2008/
    Gregory Lalire 6/1/2008 The Code of the West: Unwritten and Baffling., viewed 7/14/2025,<https://www.historynet.com/letter-from-wild-west-august-2008/>
    Gregory Lalire - The Code of the West: Unwritten and Baffling. [Internet]. [Accessed 7/14/2025]. Available from: https://www.historynet.com/letter-from-wild-west-august-2008/
    Gregory Lalire. "The Code of the West: Unwritten and Baffling." Gregory Lalire - Accessed 7/14/2025. https://www.historynet.com/letter-from-wild-west-august-2008/
    "The Code of the West: Unwritten and Baffling." Gregory Lalire [Online]. Available: https://www.historynet.com/letter-from-wild-west-august-2008/. [Accessed: 7/14/2025]

    Related stories

    Stories

    Portfolio: Images of War as Landscape

    Whether they produced battlefield images of the dead or daguerreotype portraits of common soldiers, […]

    Stories

    Jerrie Mock: Record-Breaking American Female Pilot

    In 1964 an Ohio woman took up the challenge that had led to Amelia Earhart’s disappearance.

    Pony Express National Historic Trail in Wyoming
    Portfolio

    This Patient Rider Spent Months Retracing the Pony Express on Horseback

    In 2019 Will Grant embarked on a 142-day, 2,000-mile horseback journey from the Pony Express stables in St. Joseph, Mo., to trail’s end in Sacramento, Calif.

    Buffalo Bill Cody
    Stories

    10 Pivotal Events in the Life of Buffalo Bill

    William Frederick Cody (1846-1917) led a signal life, from his youthful exploits with the Pony Express and in service as a U.S. Army scout to his globetrotting days as a showman and international icon Buffalo Bill.

    HistoryNet
    • Facebook
    • Twitter
    • Instagram
    • YouTube

    “History is a guide to navigation in perilous times. History is who we are and why we are the way we are.”

    David McCullough, author of “1776”

    HistoryNet.com is brought to you by HistoryNet LLC, the world’s largest publisher of history magazines. HistoryNet.com contains daily features, photo galleries and over 25,000 articles originally published in our nine magazines.

    Our Magazines

    • American History
    • America’s Civil War
    • Aviation History
    • Civil War Times
    • Military History
    • Military History Quarterly
    • Vietnam
    • Wild West
    • World War II

    About Us

    • What Is HistoryNet.com?
    • Advertise With Us
    • Careers
    • Meet Our Staff!

    Stay Curious

    Subscribe to receive our weekly newsletter with top stories from master historians.

    sign me up!

    © 2025 HistoryNet.
    • Privacy Policy
    • Terms of Service