The Moon is a Harsh Mistress is a science fiction novel by American writer Robert A. Heinlein, published in 1966. The story is set in a futuristic penal colony on the Moon where the inhabitants, led by a sentient computer named Mike, revolt against the government on Earth to establish their own independent lunar society.