The story, a recording of a medium's meditation over the future writing of the text, details the narrator, Adam Jeffson, on an expedition to the North Pole during the 20th century on board the Boreal.
Jeffson's fianc e, the Countess Clodagh, poisons her own cousin in order to secure a place on the ship for Jeffson, because the expedition was known to be one of the best ever planned. A millionaire who died some years previously had provided in his will for the payment of $175,000,000 to the first person to stand at the North Pole.
Before Jeffson leaves, he hears a sermon by a Scottish priest, named Mackay, speaking against Polar research, calling the failure of all previous expeditions the will of God, and prophesying a terrible fate for those who attempt to go against God's will. Jeffson at the same time remembers his meeting with a man who claimed that the universe is a place of strife between vague "powers", "The White" and "The Black", for dominance.
Throughout the events of the polar journey, Jeffson gradually discovers that his course has been, for many years, guided by these forces, all the way up to the point when he reaches the pole. He finds a huge clear lake of spinning water, with a rocky island inlaid with inscriptions. Upon seeing this, Jeffson suddenly faints. When he returns to his camp he, along with his dogs, feels nauseated after having smelled a peculiar peach-like odour. He also notices a moving purple cloud, spreading in the far heavens. During the progress of his journey, he discovers dead animals, all without the slightest sign of injury, and he gradually learns of the death of his entire crew on board the Boreal.
The ship being fairly easy to operate, he sets out by himself. First he travels towards northern islands, but upon seeing the death of all various races from around the world there (the result of an exodus, escaping the death-bringing cloud), and meeting ships crowded with corpses, he comes instead to the dead continent, walking through London, searching for news of the cloud. He looks for any survivors in shut mines, but finds all barricades broken through by mad crowds. Later, he goes to the house of Arthur Machen (an actual close friend of Shiel's), whom he finds dead, having been writing a poem until the very end. There, he finds the notebook into which he writes his whole narrative.
The later parts of the book describe Jeffson's descent into mad pompousness: adopting Turkish attire, he declares himself monarch and burns down cities (including Paris, Bordeaux, London, and San Francisco) for pleasure. He then commits his life to one task, the construction of a huge and colossal golden palace on the isle of Imbros, which he means to dedicate as an altar to God and a palace to himself. He spends seventeen years on the palace, several times abandoning the work, until its completion, when he recognizes the vanity of it.
While travelling through Constantinople, which he also burns down, he meets a twenty-year-old naked woman who is without the slightest knowledge of anything in the world. She continues to follow him, no matter how he mistreats her. Gradually, he accepts her, but forces her to wear a veil over her mouth. Her speed at learning astonishes him, so he teaches her to speak, read, cook, fish, and dress.
The girl (who is unable to pronounce "r", instead saying "l") reveals that she had lived her whole life in a cellar below the royal palace of Turkey, and that she knew nothing of the world until she was freed when Jeffson burned down Constantinople. She becomes absorbed in the Bible and declares the humans who sought for riches as "spoiled".
Jeffson struggles mightily against his growing affection towards the girl, wishing to end the human race. At the very end, when he leaves to go to England, she telephones him about the re-appearance of the Purple Cloud over France. He rushes to her, embracing her as his wife and now hoping to find a way to escape the cloud. She tells him to trust that God will not allow her to die. He concludes his writing by saying that he has accepted his role and that after three weeks have passed no purple cloud has appeared, and he looks forward to the two of them becoming the progenitors of future humanity.
Output: How many years did Jeffson spend building his palace?