Tobey Maguire has been cast in Z for Zachariah.

The sci-fi film will be helmed by writer/director Craig Zobel, Variety reports.

The film is based on the Robert C O'Brien novel, and will centre on Ann Burden, a 16-year-old who is the last survivor of a nuclear war.

However, when she sees smoke from a distant campfire, she realises she may not be alone.

Maguire will play the character of scientist with a dark past who disturbs her solitude.

He will also produce the film with Material Pictures partner Matthew Plouffe.

The book was previously adapted by the BBC in a production starring Anthony Andrews in 1984.