The Martian is a 2015 American[nb 1] science fiction film directed by Ridley Scott and starring Matt Damon. The film is based on Andy Weir's 2011 novel The Martian, which was adapted into a screenplay by Drew Goddard. Damon stars as an astronaut who is incorrectly presumed dead and left behind on the planet Mars, and who then fights to survive. The film also features Jessica Chastain, Kristen Wiig, Jeff Daniels, Michael Peña, Kate Mara, Sean Bean, Sebastian Stan, Aksel Hennie, and Chiwetel Ejiofor in supporting roles.
Producers Simon Kinberg and Aditya Sood began developing the film after 20th Century Fox optioned the novel in March 2013. Drew Goddard adapted the novel into a screenplay and was initially attached to direct, but the film did not move forward. Ridley Scott replaced Goddard, and with Damon in place as the main character, production wasgreen-lit. Filming began in November 2014 and lasted approximately 70 days. Around 20 sets were built on a sound stage in Budapest, Hungary, one of the largest in the world. Wadi Rum in Jordan was also used as a practical backdrop for filming. Andy Weir, who developed a relationship with NASA after publishing the novel, involved the space program in working with Scott to accurately depict the film's science and technology.