While she didn't write the lyrics entirely on her own, Dale Evans wrote the melody and some of the lyrics. The song was inspired by a poem written by her friend, Happy Jack (Jack Duvall), who was a singing cowboy himself. Dale then collaborated with Stan Jones, a renowned songwriter, to finalize the lyrics.