Comets have appeared in numerous works of fiction. One of the earliest such works is Edgar Allan Poe's 1839 short story "The Conversation of Eiros and Charmion", wherein the Earth's atmosphere is lost to a comet, with catastrophic results. Destruction is also caused by impact events in works such as the 1977 novel Lucifer's Hammer by Larry Niven and Jerry Pournelle, and the impact of Comet Shoemaker–Levy 9 on Jupiter in 1994 was satirized by Terry Pratchett in his 1998 Discworld novel The Last Continent. Looming threats posed by comets are depicted in many works including Dennis Wheatley's 1939 novel Sixty Days to Live and the 1998 film Deep Impact. Conversely, H. G. Wells' 1906 novel In the Days of the Comet provides a rare example of positive effects arising from Earth encountering a comet, the gases in the comet's tail altering the atmosphere in a way that transforms human character for the better.
Besides comets coming to Earth, they are also visited by humans in some stories such as the 1986 novel Heart of the Comet by Gregory Benford and David Brin which depicts an expedition to Halley's Comet; these concepts are combined in Jules Verne's 1877 novel Hector Servadac (English title: Off on a Comet) where a cometary encounter with Earth results in a number of humans traversing the Solar System with the comet. Several stories depict the extraction of resources, mainly water, from comets; one such story is the 1992 novel Mining the Oort by Frederik Pohl. A few works such as Arthur C. Clarke's 1975 novel Imperial Earth and Robert S. Richardson's 1946 short story "The Blindness" feature anthropomorphized thinking comets, and Diana Wynne Jones' 2007 novel The Game depicts an outright personified one.
- Clute, John; Langford, David; Sleight, Graham (eds.). "Comets". The Encyclopedia of Science Fiction. Archived from the original on 2013-12-31. Retrieved 2021-09-21.
- Stableford, Brian M. (2006). "Comet". Science Fact and Science Fiction: An Encyclopedia. Taylor & Francis. pp. 95–96. ISBN 978-0-415-97460-8.
- Westfahl, Gary (2021-07-19). "Comets and Meteoroids". Science Fiction Literature through History: An Encyclopedia. ABC-CLIO. pp. 205–207. ISBN 978-1-4408-6617-3.
- Gillett, Stephen L. (2005). "Comets and Asteroids". In Westfahl, Gary (ed.). The Greenwood Encyclopedia of Science Fiction and Fantasy: Themes, Works, and Wonders. Greenwood Publishing Group. pp. 146–148. ISBN 978-0-313-32951-7.
- Caryad; Römer, Thomas; Zingsem, Vera (2014). "Moderne Mythen zu Kometen" [Modern Myths about Comets]. Wanderer am Himmel: Die Welt der Planeten in Astronomie und Mythologie [Wanderers in the Sky: The World of the Planets in Astronomy and Mythology] (in German). Springer-Verlag. pp. 308–309. ISBN 978-3-642-55343-1.
- Hampton, Steven (Summer 2000). Lee, Tony (ed.). "Momentos of Creation: Asteroids & Comets in SF". The Zone. No. 9. pp. 6–8. ISSN 1351-5217.