From 1940 to 1956, Autry had a huge hit with a weekly show on CBS Radio, Gene Autry's Melody Ranch. His horse, Champion, also had a CBS-TV and Mutual radio series, The Adventures of Champion. In response to his many young radio listeners aspiring to emulate him, Autry created the Cowboy Code, or Ten Cowboy Commandments. These tenets promoting an ethical, moral, and patriotic lifestyle that appealed to youth organizations such as the Boy Scouts, which developed similar doctrines. The Cowboy Code consisted of rules that were "a natural progression of Gene's philosophies going back to his first Melody Ranch programs—and early pictures." According to the code:
- The Cowboy must never shoot first, hit a smaller man, or take unfair advantage.
- He must never go back on his word, or a trust confided in him.
- He must always tell the truth.
- He must be gentle with children, the elderly, and animals.
- He must not advocate or possess racially or religiously intolerant ideas.
- He must help people in distress.
- He must be a good worker.
- He must keep himself clean in thought, speech, action, and personal habits.
- He must respect women, parents, and his nation's laws.
- The Cowboy is a patriot.