In Back to the Future Part III , Marty McFly travels back to the year 1885 to rescue Doc Brown, who is stranded there and in danger of being killed
. The film is set primarily in this year, marking a shift to a Western-themed adventure in the storyline