Cowboys and Aliens is an Earth based science fiction which was released in 2011 and is directed by Jon Favreau.
Based on the comic book of the same name, it tells of a stranger (Jake Lonergran) who enters the town of Absolution, Arizona, 1873 with no memory of his past. The town is controlled by Colonel Woodrow Dollarhyde with an iron fist. When the town comes under attack from UFOs, they turn to the stranger for salvation. Assisted by the town`s inhabitants both law abiding and non-abding, Native American and an elusive traveller, Jake leads the fight back.