Fox bought Weir's pitch and hired him to write the script for the project, which will be the author's first screenplay. The studio is keeping the logline under wraps, reported Variety.
Weir self-published "The Martian" as his first novel in 2011 as a free serial on his website, then sold it on Amazon Kindle before selling the rights to Crown Publishing, where it became a New York Times bestseller.
He has since published short story "The Egg" and "Across the Lake."