Human: I want to learn more about the history of the cowboy hat? Assistant: 
The cowboy hat is a symbol of American culture and heritage. It has been worn by cowboys since the 19th century, when it was first introduced as a protective headwear for riders on horseback. Cowboys wore them to protect themselves from sun, wind, dust and insects while working in the open plains. They were also used as part of their costume during rodeos and other events. In the early 20th century, cowboy hats became popular among civilians and are now commonly worn as casual wear.