Quoting Wikipedia:
Apocalyptic and post-apocalyptic fiction is a subgenre of science fiction, science fantasy or horror fiction literature in which the Earth's technological civilization is collapsing or has collapsed. [...] The apocalypse event may be climatic, natural, man-made, medical, or imaginative, such as zombie apocalypse or alien invasion. [...] The time frame may be immediately after the catastrophe, or considerably later, often including the theme that the existence of pre-catastrophe civilization has been forgotten (or mythologized). Post-apocalyptic stories often take place in a non-technological future world, or a world where only scattered elements of society and technology remain..