The War of the Worlds is a science fiction novel by English author H. G. Wells first serialized in 1897 in the UK by Pearson's Magazine and in the US by Cosmopolitan magazine. The novel's first appearance in hardcover was in 1898 from publisher William Heinemann of London.