The Code of the West: The Rules Real Cowboys Live By
Put a hand on a trail crew in 1885 and ask him about the Code of the West, and he'd probably squint at you. Not because he didn't have one. Because nobody in his outfit called it that. What he had was simpler and heavier than a list: a horse that depended on him, a crew that depended on him, and a reputation that rode from one outfit to the next faster than he could. Break your word once out there, and a whole country of cattle camps knew about it before you found your next job.
That's the real Code of the West. Everything else — the numbered rules, the movie-cowboy creeds, the state statute — came later, and we'll walk through all of it honestly. But the thing underneath was real, it was enforced, and it still works. Here's the whole story, free and in plain language.
Short answer: The Code of the West is the unwritten set of rules working cowboys lived by on the open range — keep your word, take care of your horse, do your share, help a stranger, and never take unfair advantage. Nobody wrote it down at the time; it was enforced by reputation in a country with almost no law. The phrase itself came later, through Zane Grey's 1923 story Code of the West, Gene Autry's late-1940s Cowboy Code, and James P. Owen's 2004 book Cowboy Ethics, whose ten principles Wyoming adopted as its official state code in 2010.
Did cowboys really have a code?
Yes and no, and the honest answer is more interesting than either.
The phrase "Code of the West" doesn't show up in the firsthand accounts from the trail-driving years. Charlie Siringo's A Texas Cow Boy (1885), the first autobiography a working cowhand ever published, is full of stampedes, long nights, and hard men, and never organizes any of it around a named code. Teddy Blue Abbott's recollections of trailing herds in the 1870s and '80s, published in 1939 as We Pointed Them North, remember the life with warmth and never use the phrase either.
What those men did have was a dense set of expectations that mattered precisely because there was no sheriff riding drag. Written contracts were rare on the range. A man's word, and the memory other men kept of whether it had ever failed, did the job a contract does today. Some failures were unforgivable. Stealing a horse sat near the top, since losing your mount in open country could mean losing your life. Mistreating an animal marked a man as careless in a trade where a sore-backed horse endangered everyone riding near him. Quitting a crew mid-drive, lying about work done, or dodging your turn at night guard branded a man unreliable in a small world with a long memory.
Trail crews were also more mixed than the movies let on — white, Black, Mexican, and Native hands rode together, and shared danger built a rough practical equality in the saddle. Roughly one in four cowboys on the trails was Black, and much of the trade itself — the roping, the rig, the words — came up from the vaqueros who worked cattle a century before anybody said "cowboy." The values weren't unique to cow country. Honesty, hospitality, and courage were everywhere. What made the range version different was the cost of breaking it. A hundred miles from the nearest court, a man's name was the only security he had.
So: no written code, no numbered rules, no phrase. But real rules, really enforced, by the only authority that mattered out there — the men you rode with.
Where the phrase actually came from
The Code got its name and its numbers in stages, mostly long after the open range was fenced.
1923 — Zane Grey. Grey's story Code of the West ran as a serial in The Country Gentleman from April 28 to July 14, 1923, became a silent film in 1925, and finally appeared as a book in 1934. That's the phrase entering popular culture — fifty years after Siringo's trail days, and two generations after the big drives ended.
Late 1940s — Gene Autry's Cowboy Code. This one is usually dated 1939, but the documented trail says otherwise. According to Autry's biographer Holly George-Warren, the singing cowboy's ten "cowboy commandments" developed piece by piece: he was pronouncing cowboy-code rules on his Melody Ranch radio dramas by August 1947, Life magazine referenced the code in 1948, and studio press materials had it in print by 1949. The rules were written for kids and sound like it, in the best way — never shoot first or take unfair advantage, never go back on your word, always tell the truth, be gentle with children, the elderly, and animals, help people in distress, be a good worker, respect your parents and your country's laws, and be a patriot. Hopalong Cassidy and Roy Rogers issued their own ten-point creeds for young fans in the same years, each leaning on honesty, respect for elders, and clean living.
1969 — Ramon F. Adams. The Texas folklorist who spent a lifetime collecting cowboy language published The Cowman and His Code of Ethics, arguing that the absence of written law had forced cattlemen to frame rules of their own — homespun laws, never written into statute, respected everywhere on the range. Adams was careful, but he was writing in 1969 about a world that had closed nearly a century earlier.
2004 — James P. Owen. A 35-year Wall Street veteran, Owen wrote Cowboy Ethics: What Wall Street Can Learn from the Code of the West, with photographs by David R. Stoecklein. His argument was that business didn't have too few laws — it had too little character. He boiled the old range ethos down to ten principles.
2010 — Wyoming makes it law. Senate File 51, passed in the 2010 session and effective July 1, 2010, created Wyoming Statute 8-3-123 and adopted Owen's ten principles as the official state code of Wyoming. It sits in the same chapter as the state flag and the state bird. A bunkhouse custom had become a statute.
The Code of the West, as Wyoming wrote it down
Here are the ten principles, exactly as they appear in Wyoming law (W.S. 8-3-123), derived from Owen's Cowboy Ethics:
- Live each day with courage.
- Take pride in your work.
- Always finish what you start.
- Do what has to be done.
- Be tough, but fair.
- When you make a promise, keep it.
- Ride for the brand.
- Talk less, say more.
- Remember that some things are not for sale.
- Know where to draw the line.
Read them twice. There isn't a single rule in there about being a cowboy. They're rules about being a man or woman you can count on, and that's exactly why they've outlived the trail drives.
What the old hands actually lived by
If you strip away the numbering and go back to what the record shows trail crews expected of each other, the working code looks something like this. None of these were written down. All of them were enforced.
Your horse comes first. Before you ate, before you slept, before you did anything for yourself, you saw to your horse. A man who ran a horse into the ground or left one sore-backed wasn't just cruel — he was dangerous to everyone around him.
Your word is the contract. There were no lawyers on the trail. A promise made was a promise kept, and a man who broke one found that news traveled faster than he did. Our Cowboy Church column put it the old way: a man is only as good as his word. Scripture said it first: "But let your communication be, Yea, yea; Nay, nay" (Matthew 5:37, KJV).
Do your share, especially at night. Night guard was the miserable job — cold, dark, two hours in the saddle circling a herd that might run at a lightning flash. Dodging your turn was one of the fastest ways to lose your standing with a crew.
Finish the drive. Quitting an outfit mid-trail left everyone else shorthanded in the worst country. The men who signed on in Texas were expected to still be there in Kansas.
Help a stranger in trouble. Out there, the man you helped today was the one who'd find your horse tomorrow. Hospitality wasn't a nicety; it was the safety net.
Don't take unfair advantage. Of a smaller man, a green hand, a stranger, or an animal. Fair play was the difference between a hard man and a bad one.
Ride for the brand. More on this one below, because it's the most famous rule and the most argued about.
Competence ran underneath all of it. But competence alone didn't earn a seat at the fire. A man also had to be of substance. That's the code.
"Ride for the brand," examined honestly
No line gets quoted more, and no line needs more care. The underlying fact is solid: a brand marked ownership, and a hired hand's job included protecting his outfit's stock — including unbranded mavericks that belonged in the boss's tally, not his own. That part is grounded in real range practice.
The phrase's modern meaning — a near-sacred pledge of loyalty to the outfit, whatever you think of the boss — gets far more elaborate treatment in twentieth-century cowboy poetry, fiction, and business books than in any nineteenth-century source. Louis L'Amour built a short story around it and called the phrase a compliment of the highest order. Whether working cowboys of the 1880s used it in that fully moralized sense is a question the record can't cleanly settle. We treat it as contested, not proven.
Here's what isn't contested: loyalty to the people who depend on you was real, and it cut both ways. A good outfit fed its hands, paid them, and stood by them. A good hand gave the outfit an honest day and didn't run down the boss in town. We wrote about what that looks like today in Riding for the Brand, and it's the same thing it was: you don't half-work for somebody.
Why the Code still holds
The reason a 2004 Wall Street book and a 2010 Wyoming statute could reach back and pick up a bunkhouse ethos is that the ethos was never really about cattle. It was about what happens to a person's character when nobody's watching and nothing forces them to do right. The range was the hardest test of that anybody ever built, and the men who passed it left the rest of us a plain answer: keep your word, do the work, take care of what's yours, and don't sell the things that aren't for sale.
That's a hopeful thing, when you think about it. Nobody needs a legislature to hand them the Code. You can live it on a Tuesday in a warehouse, a classroom, a shop, or a cab. Every one of Wyoming's ten lines is something you can decide to do before lunch.
Around here we take it personally. This family has been in America since 1630, and a lot of what we know about real cowboys and the day set aside to honor them comes down to the same handful of rules. We build our hats from scratch in the USA, never from an imported blank, and cut our tees from 100% US-grown cotton, because "take pride in your work" and "some things are not for sale" aren't slogans to us. They're the job.

Quick Answers
What is the Code of the West?
The Code of the West is the unwritten set of rules working cowboys lived by on the open range — keep your word, take care of your horse, do your share, help strangers, and never take unfair advantage — enforced by reputation rather than law. Today it usually refers to the ten principles from James P. Owen's book Cowboy Ethics, which Wyoming adopted as its official state code in 2010.
Who wrote the Code of the West?
No single person. The values were unwritten range customs. Zane Grey put the phrase into popular culture with his 1923 serial (book, 1934); Gene Autry's ten-rule Cowboy Code developed in the late 1940s; folklorist Ramon F. Adams described the "cowman's code of ethics" in 1969; and James P. Owen wrote the ten principles Wyoming later adopted in his 2004 book Cowboy Ethics.
Did real cowboys follow a written code?
No. Firsthand accounts from the trail-driving era, like Charlie Siringo's 1885 memoir, never mention a named code. But cowboys lived by real, enforced expectations — honesty, competence, care of livestock, doing your share — because a man's reputation was his only security in a country with almost no law.
What is Wyoming's official state code?
Wyoming Statute 8-3-123, adopted in 2010 (effective July 1, 2010), makes the Code of the West from Cowboy Ethics the official state code: live each day with courage; take pride in your work; always finish what you start; do what has to be done; be tough, but fair; when you make a promise, keep it; ride for the brand; talk less, say more; remember that some things are not for sale; know where to draw the line.
What does "ride for the brand" mean?
Loyalty to the outfit you work for — giving your employer an honest effort and protecting its interests as if they were your own. The phrase comes from cattle brands marking ownership, though its heavy modern meaning was popularized by twentieth-century Western writing more than by nineteenth-century cowboys.
What was Gene Autry's Cowboy Code?
A ten-rule creed for young fans that took shape on Autry's radio show and in studio publicity between 1947 and 1949. It covered fair fighting, keeping your word, telling the truth, kindness to children, the elderly, and animals, helping people in distress, working hard, and patriotism.
Is the Code of the West a law?
Only in Wyoming, and only as a symbolic state code, like a state flower or state bird. It carries no penalties. Everywhere else it's what it always was: a standard people hold themselves to.
Keep your word. Do the work. Ride for the brand.
— The Sackett Ranch Family
From the Sackett Ranch shop
Every tee 100% US-grown cotton. Every hat built from scratch in the USA. If it's worth caring for, it's worth owning.
New to the ranch? Take 15% off your first order with code WELCOME15 — and join the 1630 Club here.
Wear the stories you just read.
Every piece made in America, start to finish — by the family behind the Journal.



