 Haggard wrote the novel as a result of a five-shilling wager with his brother, who said that he could not write a novel half as good as Robert Louis Stevenson's "Treasure Island" (1883).He wrote it in a short time, somewhere between six and sixteen weeks between January and 21 April 1885.However, the book was a complete novelty and was rejected by one publisher after another.