“The Western genre sometimes portrays the conquest of the wilderness and the subordination of nature in the name of civilization or the confiscation of the territorial rights of the original, Native American, inhabitants of the frontier.…. The popular perception of the Western is a story that centers on the life of a semi-nomadic wanderer, usually acowboyor agunfighter.”
“The Western depicts a society organized around codes ofhonorand personal, direct or private justice such as the feud, rather than one organized around rationalistic, abstract law, in whichsocial orderis maintained predominately through relatively impersonal institutions.”
“A showdown orduelat high noon featuring two or more gunfighters is a stereotypical scene in the popular conception of Westerns”
Stranger on Horseback : “Joel McCrea brings law and order to the range in STRANGER ON HORSEBACK. McCrea portrays a circuit judge Richard Thorne, who comes to a small western town in the course of making his rounds. There he finds the town and surrounding area under the feudal thumb of an old-line family headed by Josiah Bannerman (John McIntire). Despite wholehearted opposition and obstacles, Thorne fingers Bannerman's spoiled son, Tom (Kevin McCarthy) for murder and smokes out the necessary…”..https://www.fandor.com/films/stranger_on_horseback
A conventional theme in the western is one in which there is a certain lawlessness in a town. A person—loner—possibly a lawman from some other places comes to the town to try to release the town from the clutches of the evil people running things and terrorizing everyone.