Western fiction is a genre of literature set in the American Old West frontier and typically set from the late eighteenth to the late nineteenth century. Well-known writers of Western fiction include Zane Grey from the early 20th century and Louis L'Amour from the mid 20th century. The genre peaked around the early 1960s, largely due to the popularity of televised Westerns such as Bonanza. Readership began to drop off in the mid- to late 1970s and has reached a new low in the 2000s. Most bookstores, outside a few west American states, only carry a small number of Western fiction books.
The predecessor of the western in American literature emerged early with tales of the frontier. The most famous of the early 19th century frontier novels were James Fenimore Cooper's five novels comprising the Leatherstocking Tales. Cooper's novels were largely set in what was at the time the American frontier: the Appalachian Mountains and areas west of there. As did his novel The Prairie (1824), most later westerns would typically take place west of the Mississippi River.[ citation needed]
The Western as a specialized genre got its start in the " penny dreadfuls" and later the " dime novels". Published in June 1860, Malaeska; the Indian Wife of the White Hunter is considered the first dime novel.  These cheaply made books were hugely successful and capitalized on the many stories that were being told about the mountain men, outlaws, settlers, and lawmen who were taming the western frontier. Many of these novels were fictionalized stories based on actual people, such as Billy the Kid, Buffalo Bill, Wyatt Earp (who was still alive at the time), Wild Bill Hickok, and Jesse James.
By 1900, the new medium of pulp magazines helped to relate these adventures to easterners. Meanwhile, non-American authors, like the German Karl May, picked up the genre, went to full novel length, and made it hugely popular and successful in continental Europe from about 1880 on, though they were generally dismissed as trivial by the literary critics of the day. 
Popularity grew with the publication of Owen Wister's novel The Virginian (1902) and especially Zane Grey's Riders of the Purple Sage (1912). The first Hopalong Cassidy stories by Clarence Mulford appeared in 1904, both as dime novels and in pulp magazines. When pulp magazines exploded in popularity in the 1920s, Western fiction greatly benefited (as did the author Max Brand, who excelled at the western short story). Pulp magazines that specialised in Westerns include Cowboy Stories, Ranch Romances, Star Western, West, and Western Story Magazine.  The simultaneous popularity of Western movies in the 1920s also helped the genre.
In the 1940s several seminal Westerns were published, including The Ox-Bow Incident (1940) by Walter van Tilburg Clark, The Big Sky (1947) and The Way West (1949) by A.B. Guthrie, Jr., and Shane (1949) by Jack Schaefer. Many other Western authors gained readership in the 1950s, such as Ray Hogan, Louis L'Amour, and Luke Short.
The genre peaked around the early 1960s, largely due to the tremendous number of Westerns on television. The burnout of the American public on television Westerns in the late 1960s seemed to have an effect on the literature as well, and interest in Western literature began to wane.[ citation needed]
Western novels, films and pulps gave birth to Western comics, which were very popular, particularly from the late 1940s until circa 1967, when the comics began to turn to reprints. This can particularly be seen at Marvel Comics, where Westerns began circa 1948 and thrived until 1967, when one of their flagship titles, Kid Colt Outlaw (1949–1979), ceased to have new stories and entered the reprint phase. Other notable long-running Marvel Western comics included Rawhide Kid (1955–1957, 1960–1979) Two-Gun Kid (1948–1962), and Marvel Wild Western (1948–1957).
DC Comics published the long-running series All-Star Western (1951–1961) and Western Comics (1948–1961), and Charlton Comics published Billy the Kid (1957–1983) and Cheyenne Kid (1957–1973). Magazine Enterprises' Straight Arrow ran from 1950 to 1956, and Prize Comics' Prize Comics Western ran from 1948 to 1956.
Fawcett Comics published a number of Western titles, including Hopalong Cassidy from 1948 to 1953. They also published comics starring actors known for their Western roles, including Tom Mix Western (1948–1953) and Gabby Hayes Western (1948–1953). Similarly, Dell Comics published Roy Rogers comics from 1948 to 1961, and Magazine Enterprises published Charles Starrett as the Durango Kid from 1949 to 1955.
In the 1970s, the work of Louis L'Amour began to catch hold of most western readers and he has tended to dominate the western reader lists ever since. George G. Gilman also maintained a cult following for several years in the 1970s and 1980s. Larry McMurtry's and Cormac McCarthy's works remain notable. Specifically, McMurtry's Lonesome Dove and McCarthy's Blood Meridian (both published in 1985) are recognized as major masterpieces both within and beyond the genre. Elmer Kelton, mostly noted for his novels The Good Old Boys and The Time it Never Rained, was voted by the Western Writers of America as the "Best Western Writer of All Time". Early in the 1970s Indiana novelist Marilyn Durham wrote two popular Western novels, The Man Who Loved Cat Dancing and Dutch Uncle.
Western readership as a whole began to drop off in the mid- to late 1970s. A partial exception was an innovation, the so-called "adult western". As one practitioner puts it, "What's an Adult Western? It's a western novel with sex in it. That's right, the cowboy has sex with women. A new idea? Probably not, but heretofore this had not been seen in western novels (certainly not by Max Brand, Zane Grey, Owen Wister or Louis L'Amour). What these books actually showed was that men and women really did have sex in the old west. (Back when I started the series a rigidly traditional western writer of my acquaintance insisted to me that "women did not have orgasms in the old west.")." 
Readership of western fiction reached a new low in the first decade of the twenty-first century, and most bookstores, outside a few western states, only carry a small number of Western fiction books. Nevertheless, several Western fiction series are published monthly, such as The Trailsman, Slocum, Longarm and The Gunsmith; these are all "adult westerns". The genre has seen the rumblings of a revival, and 2008 saw the publication of an all-Western short story magazine Great Western Fiction which was published by Dry River Publishing in Colorado. Nevertheless, the magazine was short-lived and folded after only two issues. 
Western authors are represented by the Western Writers of America, who present the annual Spur Awards and Owen Wister Award for Lifetime Achievement. The organization was founded in 1953 to promote the literature of the American West. While the founding members were mostly western fiction writers, the organization began getting a number of other members from other backgrounds such as historians, regional history buffs, and writers from other genres.
Western Fictioneers, founded in 2010, is a professional writers' group that encourages and promotes the traditional Westerns. It is the only professional writers' organization composed entirely of authors who have written Western fiction. Fans of the genre may join as patron members. The Western Fictioneers' annual Peacemakers competition awards prizes in many categories of Western writing. 
- Roberts, Garyn G. (1990). Old Sleuth's Freaky Female Detectives: (from the Dime Novels). Bowling Green, OH: Popular Press. p. 2. ISBN 0879724757. Retrieved September 13, 2015.
- Novak, Ben (2014). Hitler and Abductive Logic: The Strategy of a Tyrant. Lanham, MD: Lexington Books. pp. 104–05. ISBN 0739192248. Retrieved September 13, 2015.
- Dinan, John A. (1983). The Pulp Western: A Popular History of the Western Fiction Magazine in America. Borgo Pres. ISBN 0-89370-161-0.
- Randisi, Robert J. "50 Shades of Gunsmith" Piccadilly Publishing website
- "Great Western Fiction Has Folded," The Tainted Archive (August 31, 2008).
- Boatright, Mody C. "The Formula in Cowboy Fiction and Drama." Western Folklore (1969): 136–145. in JSTOR
- Davis, David B. "Ten-Gallon Hero." American Quarterly (1954) 6#2 pp: 111–125. in JSTOR
- Durham, Philip. "The Cowboy and the Myth Makers." The Journal of Popular Culture (1967) 1#1 pp: 58–62.
- Estleman, Loren D. The Wister trace: classic novels of the American frontier (Jameson Books, 1987)
Fleming, Robert E (October 1979). The Dime Novel Western. Rocky Mountain Modern Language Association.
- Hamilton, Cynthia S. Western and hard-boiled detective fiction in America: from high noon to midnight (Macmillan, 1987)
Jones, Daryl Emrys (January 1974). The Dime Novel Western: The Evolution of a Popular Formula. Michigan State University: ProQuest, UMI Dissertations Publishing.
- McVeigh, Stephen. The American Western (Edinburgh University Press, 2007.)
- Marsden, Michael T. "The Popular Western Novel as a Cultural Artifact." Arizona and the West (1978): 203–214. in JSTOR
- Stauffer, Helen Winter, and Susan J. Rosowski, eds. Women and western American literature (Whitston Publishing Company, 1982)