The Western is a film genre defined by the American Film Institute as films which are "set in the American West that [embody] the spirit, the struggle, and the demise of the new frontier." Generally set in the American frontier between the California Gold Rush of 1849 and the closing of the frontier in 1890, the genre also includes many examples of stories set in locations outside the frontier – including Northern Mexico, the Northwestern United States, Alaska, and Western Canada – as well as stories that take place before 1849 and after 1890. Western films comprise part of the larger Western genre, which encompasses literature, music, television, and plastic arts.
Gary Cooper in Vera Cruz from 1954.
John Wayne in The Comancheros (1961)
A film genre is a stylistic or thematic category for motion pictures based on similarities either in the narrative elements, aesthetic approach, or the emotional response to the film.
Western films are those "set in the American West that embod[y] the spirit, the struggle and the demise of the new frontier". Pictured: Clint Eastwood in the Spaghetti Western film A Fistful of Dollars (1964).
War film or anti-war movie: Lewis Milestone's All Quiet on the Western Front, 1930